Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
^-?\d{0,}(\,\d{1,})?$
/
gm

Description
Created·2021-11-30 11:45
Type·Match
Flavor·PCRE2 (PHP)

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
Open Workspace