Regular expression (PCRE) for url matching
Posted
by zerkms
on Stack Overflow
See other posts from Stack Overflow
or by zerkms
Published on 2010-05-12T12:05:54Z
Indexed on
2010/05/12
12:14 UTC
Read the original article
Hit count: 176
regex
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?
© Stack Overflow or respective owner