Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: help in REGEX operation

$
0
0

Well actually we can simplify the pattern above: ^\d*([\.\,]\d{2})?$

^\d* - pattern needs to start with any number, which can occure multiple times

([\.\,] - above pattern ends in case either a dot or comma is found

\d{2})? - pattern needs to end with 2 digits

 

Regards,

Dominik


Viewing all articles
Browse latest Browse all 8623

Trending Articles



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