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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -