Coldfusion Regular Expression exclude Special Characters

Hi, I'm usesing CF8's validation in a cfinput type="text"  validate="regex" pattern="No special Characters" .....   If there are any special chracters I want to throw the error message (fails validation).  Does anyone have a pattern that allows for letters, numbers, spaces, periods, but NOT special characters?

Thanks ~ Wendi.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd MummertCommented:

^[0-9a-zA-z .]+$

should work

basically beginning of string, all characters must be of the class in [], and then end of string


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Todd MummertCommented:
quick follow-up ... if you want to check for any special character, use

[^0-9a-zA-z .]

which means a character not matching the group

wkolasaAuthor Commented:
Thank you!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.