|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Re: Re: Re: Re: Re: Re: Re: User Codeby duct_tape (Hermit) |
| on Dec 11, 2000 at 14:40 UTC ( [id://46080]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||