I have a string like this
Good Morning
Hello There - PROTECT FROM FREEZE
protect from freeze
FORKLIFT UNLOAD -Please ship it with care
Thank you
I need a regex to match PROTECT FROM FREEZE from both lines and FORKLIFT UNLOAD on the other line
I have tried .*FREEZE.* and .*FORKLIFT.* (IGNORED CASE using re.IGNORECASE), But this regex selects the whole line.
This regex gives the output as follows:
Hello There - PROTECT FROM FREEZE
protect from freeze
FORKLIFT UNLOAD -PLEASE HAVE SKID AT TAIL
Desired Output:
PROTECT FROM FREEZE
protect from freeze
FORKLIFT UNLOAD