Regex to find at least 4 occurrences of a forward slash in a string
I have some urls and I would like to make sure they have at least 4 slashes as some of my urls have less. For example:
Pass: http: // localhost: 2000 / machine / my-test-machine / 3
Failure: http: // localhost: 2000 / my-test-machine
Any help would be much appreciated. thanks to Dave
+3
source to share
3 answers