Zend - The PHP Company




Code Gallery: karel007


OUCH! (opportunistic URL catching hack)  

Type: code fragment
Added by: karel007
Entered: 20/05/2002
Last modified: 06/12/2001
Rating: **** (3 votes)
Views: 5794
A regular expression to match a URL (http and https) in a text and replace it with the A tag. It also matches only www links (written without http://). And it doesn't include a possible character at the end of the link! MOSTLY CODED BY STAN!!! thanx! report any bugs an other features to me




Search