Regular expression to control input range
C#
3
Posts
3
Posters
0
Views
1
Watching
-
I need to write a regular expression to control the textbox input. Range : 1.00 to 2.00 Please tell me how?
The first character would be a "1" or "2". The second character would be a period. The third and fourth characters would be "0"-"9".
-
I need to write a regular expression to control the textbox input. Range : 1.00 to 2.00 Please tell me how?
1\.\d\d?|1|2\.00?|2 I suggest you get a copy of Expresso[^] if you are going to play with regular expressions - it break them down and helps you design them.
If Barbie is so popular, why do you have to buy her friends? Eagles may soar, but weasels don't get sucked into jet engines. If at first you don't succeed, destroy all evidence that you tried.