Good morning, I want to build a regex that allows me to know when 6 or more "/" have been placed. namely:
//texto//de//prueba ->true
texto//de//prueba ->false
I have the regex that gives me the 6 "/" when they are together, not when they are apart.
/\/{6,}/
how can i achieve this?
You need to match everything in between, between each of the slashes, that is, any number of non-slash characters
[^\/]*
.Regex:
(?:
...){6}
is what allows you to repeat 6 times to everything inside the parentheses.