# create html my $base = qq(<BASE HREF="$urltodir">); # add base tag to page - assumes all pages well formed $content =~ s/(<HEAD>)/$1$base/is;
That way you don't have to run a bunch of regexps on the page - good practice, but not needed :)
cLive ;-)
In reply to Re: Regex question: here's the lazy way
by cLive ;-)
in thread Regex question: Is there a better way?
by Xxaxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |