Hey guys! I'm new to Regular Expressions... I've been asked a regular expression that accepts Alphanumerics, a few characters more, and only ONE whitespace between words.
For example : This should match :
"Hello world"
This shouldn't :
"Hello world"
Any ideas?
This was my expression:
[\w':''.'')''(''\[''\]''{''}''-''_']+$
I already tried the \s? (the space character once or never - right? ) but I didn't get it to work.