Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mrjamin

macrumors 65816
Original poster
Feb 6, 2003
1,161
1
Strongbadia
Anyone with access to the vBulletin source code care to do me a favour?

I'm looking for a decent php/perl regexp for automatically generating the html for hyperlinks if it finds a web-address (with OR without http://) and replaces each instance with the relevant "<a href..." info.

I've found a few on the net that are pretty crappy, and tried writing my own. I get to the point where my head feels like its about to explode because regular expressions bake my noodle. The best one i've come accross is the one on vBulletin boards.

If this isn't a possibility (copyright and all that malarchy) is there anyone with a robust and reliable expression that'll do the job? Mind sending me the code?

thx all ;)

MrJ
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.