Link to home
Start Free TrialLog in
Avatar of hefterr
hefterrFlag for United States of America

asked on

Regex string validation question

Hi,
I am a newbie with Regex.  Could you please come up with an expresion that could be used to validate that an input string only contains the characters:  a-z, A-Z, space, or "-" (hyphen).

I need to use this to validate the input string from a form.

Thanks in advance,
hefterr
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hefterr

ASKER

Thanks!