[Solved] How will it be fixed so that it can catch mentioned URL formats? [closed]


What I can notice, you expect the pattern to catch the website with or without http/https – this is not included in your expression.

What is more, I am not sure what the purpose of \(* is – ((((((https://some.url.com will also be caught.

Is https://½½½½½½½½½½½½ a valid url? It will be accepted. What about http://= (sorry for ugly escaping the . with ) ?

https://test.com. (with a dot at the end) IS a valid URL and will not.

Try Something like this:

(https?://)?\\w+[\\w-.]*

Note that not all acceptable characters are included because I am plain lazy, refer to RFC 3986 for those. Also see http://www.w3.org/Addressing/URL/url-spec.txt

0

solved How will it be fixed so that it can catch mentioned URL formats? [closed]