paragraph wildcard

22 views
Skip to first unread message

gordon....@gmail.com

unread,
Apr 29, 2022, 6:27:01 PM4/29/22
to Tasker
is there a paragraph character or wildcard?

RSF

unread,
Apr 30, 2022, 10:28:39 AM4/30/22
to Tasker
Generally the regular-expression
    \n
should indicate a "newline" character, which generally equals the end of a paragraph -- if the text being inspected is formatted as a continuous string of characters separated by newlines at the end of paragraphs...

If text is instead formatted with a newline character at the end of each line, and a blank line indicates a new paragraph, then the regular expression
    ^$
could be used to find those blank lines.

https://regex101.com/ is a good place to experiment with regular expressions; you can paste your text there, and try different regular expressions to see which will work.
Reply all
Reply to author
Forward
0 new messages