Member
lottie
How to allow only 1 forward slash in regex expression?
raven_corwin
@lottie
To allow only one forward slash "/" in a regular expression, you can use the following pattern:
1
^[^/]*/[^/]*$
Explanation:
This regex pattern will only match strings that contain exactly one forward slash.