Help for allowing spaces in regular expression--> ^[a-zA-Z]*$

brgdotnet
brgdotnet used Ask the Experts™
on
How do I modify this regular expression so that blank spaces are allowed. Can anyone help me out with this? This is for an asp.net application

^[a-zA-Z]*$
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I'm not 100% sure on this, but I know in Java/AJAX you can simply include a space in your brackets such as:

^[a-zA-Z ]*$
Commented:
"^[a-zA-Z\\s]*$"
brgdotnetcontractor

Author

Commented:
I had to include a space so it ended up looking like this
^[a-zA-Z\ \s]*$
brgdotnetcontractor

Author

Commented:
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial