Get all lines matching a word

hi

i have below text where i should extract all lines matching the pattern from the scrapped data

ex:
54 ewrsd f6
98 sdsdsd f6
89 sdsdsd f5

anything matching “sdsdsd” has to returned
output:
98 sdsdsd f6
89 sdsdsd f5

i’m getting single line output using regex(.)sdsdsd(.).How can get all lines?

Hi @ranjani

are you having all this input inside a string variable or inside Datatable??

Regards,
Vijay.

Try this:
@ranjani
((\w*\ssdsdsd\s\w*))