Ok, I'm regex-ignorant and not willing to substitute the manual for my
traditional single malt night cap.

So spell it out. If I want to process a variable request$text_block such
that any http  URLs in it turn into hyperlinks, what's the full expression?


On 2/17/05 1:33 AM, "Jonah Simpson" <[EMAIL PROTECTED]> wrote:

> The example "perl" regex code was pretty nasty. However, it did
> feature the abililty to find any "internet-related" url that posted as
> text.
> 
> If you were looking for only ftp or http url's, it should be pretty
> easy to process text using the related http or ftp portions of that
> regex code.
> 
> Of course, if you were looking for anyting that may be potentially
> used as a link , regardless of the type of service it was requesting,
> you might be a bit sorry.
> 
> Just my two bits...
> 
> Cheers,
> Jonah Simpson
> 
> PS-Http regex (according to that monstrous block of jumble) =
> (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\.
> )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+)
> ){3}))(?::(?:\d+))?)(?:/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F
> \d]{2}))|[;:@&=])*)(?:/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{
> 2}))|[;:@&=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{
> 2}))|[;:@&=])*))?)?)
> 


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to