Member
jerad
How to add the option to allow only one space in a regex?
scotty_walker
@jerad
To allow only one space in a regex pattern, you can use the following regex expression:
1
^S+(sS+)?$
Explanation of the pattern:
You can use this regex pattern in your code to validate input and allow only one space in a string.