So I recommend capturing all the AAA to CCC lines in a single capture, and remove the newlines from that in a separate step. Or even simple, split on /^(?=P\d)/m and then remove newlines from the chunks.
In reply to Re: Unable to replace targeted newlines in a string
by moritz
in thread Unable to replace targeted newlines in a string
by benchrifa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |