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: <%-{-{-{-<
In reply to Re: Tricky regex problem (updated)
by AnomalousMonk
in thread Tricky regex problem
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |