in reply to Tricky regex problem
If that (update: oops... I meant to reply to that node) works for you, try this as a simplification (untested):
Beyond that, I have to say I don't understand your requirements. Can you express them more clearly?$input_text =~ s{ ^ ([#]{2,5}) \s+ [^\n]+ \s+ (?= ^ \1 [^#]) } {}xmsg;
Give a man a fish: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tricky regex problem (updated)
by nysus (Parson) on Jul 22, 2020 at 15:47 UTC |
In Section
Seekers of Perl Wisdom