PDA

View Full Version : RegEx



bhaskar1484
25 Dec 2010, 11:11 PM
hi

Can you please let me know what is the RegEx for Long to set for TextBox?
Thanks in advance

Regards,
Bhaskar

bhaskar1484
25 Dec 2010, 11:13 PM
i mean i need to set Decimal value for TextBox( for example 23.1 or 1.23 etc)

sven
26 Dec 2010, 9:24 AM
You need to be more precise. What about 123.456?

bhaskar1484
26 Dec 2010, 8:04 PM
just i gave example. user should be able to enter any valid decimal value it can be 123.456 or 2.345, 0.65, or any decimal values

sven
27 Dec 2010, 2:19 AM
You can find many examples for this with google. \d for example will help you to target numbers. Take a look at this examples: http://regexlib.com/DisplayPatterns.aspx?cattabindex=2&categoryId=3