Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Regular Expresion what is wrong?

$
0
0

Hi

first of all I would like to wish you Happy New Year 2016.

I am trying using Regular Expresion

[RegularExpression(@"^\d+(\.\d{2})?$", ErrorMessage = "Wrong price format")]

match: 1.00   123   123.52   etc

non-matches: 123.  12.12.12   0212,65     012w.q  and any when I use any letters and special signs

and display above message.

Thank you for yr help.

Regards

Krzysztof


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>