I have an item that retrieves text data where the first few lines are not necessary.
Something like this:
DISCARD TEXT" is repeated only for this example.
There is no preprocessing step to discard multiple lines of text. I still wonder why not...
With that example, if I try to capture the "TEXT" expression with a Regex, only the first term from "DISCARD TEXT" would be found since there's no global flag.
So, with all that, is there any suggestion on how to discard text lines and correctly filter a multi-line text?
Do I really have to resort to Javascript?
Something like this:
Code:
DISCARD TEXT DISCARD TEXT DISCARD TEXT DISCARD TEXT DISCARD TEXT TEXT TO KEEP TEXT TO KEEP TEXT TO KEEP TEXT TO KEEP TEXT TO KEEP DISCARD TEXT
DISCARD TEXT" is repeated only for this example.
There is no preprocessing step to discard multiple lines of text. I still wonder why not...
With that example, if I try to capture the "TEXT" expression with a Regex, only the first term from "DISCARD TEXT" would be found since there's no global flag.
So, with all that, is there any suggestion on how to discard text lines and correctly filter a multi-line text?
Do I really have to resort to Javascript?

Comment