I have a string:
lx-ss {\n id 1;\n type mx2090;\n template 4-32g;\n}\nlaxmx2k02-ie {\n id 2;\n chss mx2010;\n resource-plate 4co;\n}\ncable {\n id 3;\n chassis mx2010;\n plate 2c;\n}\n
I need to extract cable {\n id 3;\n chassis mx2010;\n plate 2c;\n}\n from the above string.
The regex that I am following is:
[\n\r].*\ncable:\s*([^\n\r]*)
But it's not working.
Kindly help. Thanks in advance.
cable { ... }result?cable:but the string hascablewithout:.