Title |
Test
Find
Match unanchored urls in unstructured text
|
Expression |
\b((?<!["'>])(?:https?://)?(?<![-@>])(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])\.)+(?:com|org|net|gov|mil|biz|info|name|aero|mobi|jobs|museum|[A-Z]{2})(?:/[-A-Z0-9\/_.]+)?(?:\?[-A-Z0-9&\._%=,]+)?(?!['"<]))\b |
Description |
Use this regex to match urls (including folder, file and querystring) in unstructured text that are not in anchor tags. Replace with <a href="$1">$1</a> to create anchor tags. |
Matches |
www.shschools.org/community/ethics_conference.html?s=keyword |
Non-Matches |
<a href="www.shschools.org/community/ethics_conference.html?s=keyword">www.shschools.org/community/ethics_conference.html?s=keyword</a> |
Author |
Rating:
Not yet rated.
Bob Clark
|
Source |
|
Your Rating |
|