Hello:
My requirement for a
string of characters: May contain any letter, spaces, dashes or single quotes but you cannot have two consecutive spaces, two consecutive dashes or two consecutive single quotes.
I first tried to see if I could prevent just consecutive spaces. I figured this would be the correct regex:
^[a-zA-Z\-\s'-[\s{2}]]+$
or
^[a-zA-Z\\-\\s'^[\\s{2}]]+$
or
^[a-zA-Z\\-\\s'[^\\s{2}]]+$
but I haven't come up with the solution. What would be the correct regex?
Thanks.