java - Regular expression which excludes all kinds of URL -


i find various examples of regular expression regarding http / protocols , urls still not find exact regular expression can avoid kinds of url or protocols.

my aim not allow kind of url in text box ( http://example.com, https://example.com, www.example.com , http://example.in etc....) . have tried multiple regular expression cud not proper one...

i have add regular expression property executed created java class of regular expression.

gaurav

from bit of research realised hard foolproof 1 possible urls. this website has regex matches many website urls. can use complement of regex.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -