Link to home
Start Free TrialLog in
Avatar of MrFahad
MrFahad

asked on

How to do a regex that allow only: numbers, alphabetic, spaces and comma(,) for javascript?

How to do a regex that allow only: numbers, alphabetic, spaces and comma(,) for javascript?
ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
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 MrFahad
MrFahad

ASKER

hmm what you mean by 1 or more times and 0 or more times thank you :)
Do you want to allow empty input?  If so, use the 0 pattern, if not, use the 1 pattern.
Avatar of MrFahad

ASKER

very fast reply less than 1min i swear i almost thought that this an auto reply lol :p
great job
Thanks for the question and the points.