04.05.2011, 19:02
Quote:
That can be vastly simplified, plus I doubt it will work on:
Code:
http://www.******.co.uk/ That is a valid web address. If you understand how web addresses are made you can improve the regex massively: Code:
([\w-]*://)?([\w-]+\.)+([\w-]+)(/[^\s]*)* Code:
optional-prefix://dot.spaced.domain/some/path.or?frankly&anything=else |
Code:
([\92w-]*://)?([\92w-]+\92.)+([\92w-]+)(/[^\92s]*)*