Displaying page
of
pages;
Items to
Title |
Test
Details
Matching urls in free text
|
Expression |
((www|http)(\W+\S+[^).,:;?\]\} \r\n$]+))
|
Description |
A regular expression which allows me to find strings of text floating around in free text that are in fact URLs. I need to tag these as <url>www.bmj.com/advice</url>. The problem has been allowing special characters in the url, but not mixing them up with genuine punctuation marks at the end of the url in the text-e.g. '.' or '?' or ) or ';' etc)
|
Matches |
www.bmjpg.com/advice&search=?light+dark
|
Non-Matches |
www.bmjpg.com/advice&search=?light+dark?
|
Author |
Rating:
Sean Harrop
|
Displaying page
of
pages;
Items to