output:/(?<=\S)\s*$/ ? ({print "$a$`"},$a="\n") : ($a='EEEEE') while <DATA>; __DATA__ dogs rats cats fish text cats2 fish2 text3
dogs rats catsEEEEEfish text cats2EEEEEfish2 text3
In reply to Re: regular expression: match multiple newlines
by Lennotoecom
in thread regular expression: match multiple newlines
by wegelin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |