Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: How do I replace certain character if condition existsby kilinrax (Deacon) |
on Apr 17, 2003 at 13:14 UTC ( [id://251185]=note: print w/replies, xml ) | Need Help?? |
Possibly a simplistic solution, but have you tried using negative lookahead? For instance:
Breaking the regex down:
In Section
Seekers of Perl Wisdom
|
|