I have some urls and I would like to make sure they have at least 4 forward slashes as some of my URLS have less. For example:
Pass: http://localhost:2000/machine/my-test-machine/3
Fail: http://localhost:2000/my-test-machine
Any help would be much appreciated. Thanks Dave
You can try following regex,
\/\/(.*\/){3}
Working Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With