laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Re: Re: Re: Re: Re: Re: User Codeby duct_tape (Hermit) |
on Dec 11, 2000 at 19:40 UTC ( [id://46080]=note: print w/replies, xml ) | Need Help?? |
You could combine both of those regexps into one by doing something like this:
s#\[(?:http(s)?://)?([^\|]+)\|([^\]]+)\]#<a href="http$1://$2">$3</a>#g;
- Brad
In Section
Seekers of Perl Wisdom
|
|