I could find various examples of regular expression regarding http / protocols and urls but still I could not find the exact regular expression which can avoid all kinds of url or protocols.
My aim is to not allow any kind of url in a text box ( http://example.com, https://example.com, www.example.com , http://example.in etc....) . I have tried multiple regular expression but cud not get the proper one...
I have to just add this regular expression as a property which will be than executed by already created java class of regular expression.
Gaurav
You just need to remove the regex delimiters.
DEMO