Regular expression (PCRE) for url matching
- by zerkms
The input: we get some plain text as input string and we have to highlighight all urls there with {url
For some time i've used regex taken from http://flanders.co.nz/2009/11/08/a-good-url-regular-expression-repost/, which i modified several times, but it's built for another issue - to check whether the whole input string is an url or no.
So, what regex do you use in such issues?