Regexp javascript - url match with localhost
I trying to find a simple regexp for url validation, but not very good in
regexing..
Currently I have such regexp: (/^https?:\/\/\w/).test(url)
So it's allowing to validate urls as http://localhost:8080 etc.
What I want to do is NOT to validate urls if they have some long special
characters at the end like: http://dodo....... or http://dododo&&&&&
Could you help me?
No comments:
Post a Comment