Title |
Test
Find
URL,Website,Weburl
|
Expression |
(http://([\w-]+\.)|([\w-]+\.))+[\w-]*(/[\w- ./?%=]*)? |
Description |
Regular Expression matches any internet URLs. Used with the replace method it comes in very handy. |
Matches |
http://www.mk.com,www.mk.com,www.mk.com/default.aspx,http://www.mk.com/default.aspx |
Non-Matches |
.com,wwww,1234 |
Author |
Rating:
Muthukrishnan
|
Source |
Own |
Your Rating |
|
Title: URL,Website,Weburl
Name: G Franks
Date: 11/25/2008 12:15:15 PM
Comment:
I've found that using this expression in BBEdit to find and replace using grep, it works great replacing prefixed urls and just www, but it also replaces abbreviations that have a period. For example, A. B. C. Dept. Inc. all would be replaced by the chosen url.