Re: Regular Expression for currency
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
<hellbent4u@xxxxxxxxx> wrote in message
news:1175139793.519997.194810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I need a regular expression to be used in an ASP page which would
allow a user to enter:
1000 as well as
1,000
i.e. an amount without comma as well as with comma(for example 10,000
or 100,000 etc.)
Something like:
[0-9]+(,[0-9]{3})*
As others have said, this is only good with the (American? Imperial?)
notation using comma for thousands grouping and point as decimal separator.
If anyone's aware, please let me know. I am in urgent need to use it.
Thanks and Regards,
Ankur
.
Relevant Pages
- Re: Regular Expression for currency
... The ugliest code ever: ... I need a regular expression to be used in an ASP page which would ... I am in urgent need to use it. ... (microsoft.public.dotnet.languages.csharp) - Regular Expression for currency
... I need a regular expression to be used in an ASP page which would ... i.e. an amount without comma as well as with comma(for example 10,000 ... I am in urgent need to use it. ... (microsoft.public.dotnet.languages.csharp) - attn: regex gurus. can this be done with a regular expression or using a different technique?
... I need to switch *whatever* appears before the comma with ... *whatever* appears after the comma. ... If this code revision is not possible with a regular expression, ... (microsoft.public.dotnet.languages.csharp) - Re: Regular Expression Help
... | I need to find all occurrences of a comma in a string EXCEPT where it ... | I figured a regular expression would be the way to go, ... | Kind of like the wizard that helps you build a connection string? ... | of various RegEx test programs, but I would like one to help me construct ... (microsoft.public.dotnet.languages.vb) - Re: RegularExpression Validation for password in ASP.NET
... Can any one help me to write a regular expression to validate the password ... 3- Password must begin with an alphabetic character. ... single quote, double quotes, comma). ... (microsoft.public.dotnet.framework.aspnet) |
|