You still have problems if the "a" and the "href" aren't on the same line of the file.
This is why regexes are such a bad idea for this job - you need to think of so many corner conditions. Just when you fix one, the next one appears.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Re^3: Changing from relative to absolute path
by davorg
in thread Changing from relative to absolute path
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |