match a specific decimal number 0.666666
Posted: Sat Jan 29, 2011 9:03 am
Hi,
I am entirely new to regex. I need to use regular-expression to match correct answers for an online quiz. Is there any expression for matching a decimal number that may be entered in a number of different ways. For example,
0.666666...
could match
.66, .67, .66666, .667, 0.6667 etc.
thanks,
~russ
I am entirely new to regex. I need to use regular-expression to match correct answers for an online quiz. Is there any expression for matching a decimal number that may be entered in a number of different ways. For example,
0.666666...
could match
.66, .67, .66666, .667, 0.6667 etc.
thanks,
~russ