Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-11-30 11:45
Flavor·PCRE2 (PHP)

/
^-?\d{0,}(\,\d{1,})?$
/
gm
Open regex in editor

Description

This was, I think built to detect a comma separated decimal. But ended up with a capture group on the decimal part. Don't ask me why.

Submitted by Russ Ferriday - after DS