in reply to Tricky regex problem
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 |