regular expressions

How do I validate the users inputs.
I want to validate to ensure that the user is entering numbers and commas only.
I need this to validate a phone number in the format of 123123222,29292
You can try here:

http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp

Google around for others, but be aware that in different languages/environments, flavors of regular expressions exist so what works in one setting may not work elsewhere.
this is a website....any samples around??
You don't need regular expressions for your specific case since it's quite trivial
If you do want to go for regex, I suggest you boost::regex:
http://www.boost.org/doc/libs/1_44_0/libs/regex/doc/html/index.html
trivial??
do u have any example?or could u elaborate more
i have seen this and does not cater to my , in between the numbers that denote extension...thanks anyway cause i have written my own algorithm
Topic archived. No new replies allowed.