Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Re: User Code

by duct_tape (Hermit)
on Dec 11, 2000 at 19:40 UTC ( #46080=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Re: Re: Re: User Code
in thread User Code

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Re: Re: User Code
by $code or die (Deacon) on Dec 11, 2000 at 23:20 UTC
    Nice one! Thanks!

    I didn't start this node and I think I managed to divert the topic somewhat, but have definitely been helped.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2019-09-23 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (284 votes). Check out past polls.

    Notices?