I am looking for the following URLs to return as true
- other.some.url
- some.url
- some.url/page/1
The following URL should be flagged as false
- somerandomvalue
Here is the regex I have been experimenting with so far:
/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/
. I am currently using this within an Angular form input ng-pattern.
Any assistance on this matter would be greatly welcomed