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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -