Click to See Complete Forum and Search --> : Regular Expression ?


betheball
07-01-2010, 01:07 PM
Guessing this is quite simple, but I struggle with Regular Expressions. I am trying to validate a textbox. Any string is acceptable except no spaces are allowed. What would be the ValidationExpression to prevent spaces?

ryanbutler
07-01-2010, 04:19 PM
Well I usually stink, but try:

ValidateExpression="^A-Za-z$"