Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Using character with numbers in Regex

Author  Topic 

ChandanJ
Starting Member

6 Posts

Posted - 2007-10-29 : 17:21:43
Hi All,

Presently i'm having a textbox in which only numbers with 6 decimal places are allowed.
Now i want to add a character 'm', i.e the user can enter either 100000 or 12.546566 or 1m

Exisiting regex validation expression
^\d+(?:\.\d{0,6})?$

Can anyone modifiy the above code to meet my requirements?

Any help will be appreciated
   

- Advertisement -