validate is there any web links in text box or not

Vote:
 

I have a text box. in that text box i want to allow letters , numbers and few symbols (.,').
i don't to allow any links in that text box.
i want regex to don't allow links like (HTTP,HTTP,WWW,ftp).
am using below regex. its working fine when text box starts with WWW. if the WWW word includes in middle of the text then it is not working.

[^HTTP|ftp|HTTP|WWW ]

#219195
Mar 31, 2020 6:23
Vote:
 

Sandeep,
Which version of Episerver are you using? 
Where are you placing this text box?

#219225
Mar 31, 2020 15:00
Vote:
 

Try using https://regex101.com/ to get an explanation of what your regex really does.

Then try this rexex, that I thew together quickly:

^(?!.*www|.*https?|.*ftp|.*www).*$
#219229
Mar 31, 2020 15:57
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.