Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Java 8

"
^-?\d{0,6}(\.\d{1,2})?$
"
gm

Description

For two digits in regex in decimal places two and allow two digits before that point decimal

Submitted by anonymous - 2 years ago