flag of the United Kingdom
URBAN
Mainframe

User Comments

(for: Auto-linking URL's)
1 | Posted by: Clayton (Guest) | ~ 1 year, 3 months ago |

Works like a charm.

I converted it to PHP:

preg\_replace(‘/((ht|f)tp:(//)[a-z0-9%&_-+=:@~#/.]+)/iā€™,”$1&qu;… ot;,$str);

pregreplace(‘/((ht|f)tp:(//)[a-z0-9%&-+=:@~#/.]+)/iā€™,&q… uot;$1”,$str);

NOTE: This comment has been edited by its author! Additions are shown in italics, deletions with a strike-through.

2 | Posted by: DarkBlue (Registered User) | ~ 1 year, 3 months ago |

Cool. Thanks Clayton.

Your Comments
  • Formatting your comments
  • A valid email address is only required if you wish to receive notifications of new comments posted in relation to this page


remember my details:
notify me of new comments:


W3C VALIDATE XHTML
W3C VALIDATE CSS