Please support RegExLib Sponsors
.NET Engine Client-side Engine Silverlight Tester
Source Regular Expression \b((?#optional port)(https?|ftp|file)://)? (?#sub domain)([a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+ (?#top domain)(com\b|edu\b|biz\b|gov\b|in(?:t|fo)\b|mil\b|net\b|org\b|[a-z][a-z]\b) (?#optional port)(:\d+)? (?#optional path)(/[-a-z0-9_:\@&?=+,.!/~*'%\$]*)* (?#not ending in)(?<![.,?!]) (?#not enclosed in)(?!((?!(?:<a )).)*?(?:</a>)) (?#or enclosed in)(?!((?!(?:<!--)).)*?(?:-->))
Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials