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 Pattern Title
Expression
^\s*-?((\d{1,3}(\.(\d){3})*)|\d*)(,\d{1,2})?\s?(\u20AC)?\s*$
Description
Matches euro currency (portuguese regional options). Uses the dot sign as the thousands separator (optional) and the comma sign as the decimal separator. Matches only 2 digitals after decimal. Also matches negative numbers.
Matches
-123123,12 € | 12312432134 | -12.234.123,23
Non-Matches
1234.12,234
Author Rating: The rating for this expression. Paulo Cunha
   Displaying page 1 of 1 pages; Items 1 to 1

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