Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RegEx for numbers only, no decimals 1

Status
Not open for further replies.

robertfah

Programmer
Mar 20, 2006
380
US
I'm looking for a RegEx format that will allow a user to enter numbers only into a textbox, without decimals. But I'd also like to see the thousand (or ten thousand, etc.) seperator.

Ex:

123
1,234
12,345
123,456
1,234,567

Any help would be greatly appreciated!
 
This is going to get you close:

Code:
[0-9]*\,?[0-9]+[^\.]?

My copy of Expresso expired, so I used this:

Lodlaiden

I haz all the letters: SME, BA, QA, PM, DEV, DBA, UAT, SE, HD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top