RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Strip leading characters from currency
Expression
([^,0-9]\D*)([0-9]*|\d*\,\d*)$
Description
For currency: strips out leading non-numeric characters. Numbers may use a comma for the decimal place, but cannot use anything for the thousands separator.
Matches
123,5 | 123 | ,56 | 0,56 | 123 | €123 | € 123,565 | ,3424234
Non-Matches
$ 012,12 | 1.234 | 1.234,56 |
Author Rating: The rating for this expression. Christopher Vrooman
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials