Actually, I need a perl regular to work with keywords in the TextPipe program. Just go to the example, there are these kinds of keywords:
Buy food for fat elephant
Buy apples for skinny elephant
Buy carrots for normal elephant
It is necessary in each line with the help of regulars to select from the word "for" to the end of the line. Well, in TextPipe already remove or replace it all. To make the result lines like:
Buy food
Buy apples
Buy carrots
I read about perl for a long time, tried various options, but it wasn’t the only way and didn’t fit, tried the type for (. *?) $ But for some reason it removes everything to the end after the first "For".
Need help, thanks in advance!
for ([^\r\n]*+)
- Visman