Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-10-27 21:37
Flavor·PCRE2 (PHP)

/
0\.([0-7]\d*|8[0-4]\d*|85[0-6]\d*)
/
gm
Open regex in editor

Description

Matches zero followed by decimal separator followed by a group of three options:

  • hundreds below 0.857
  • 0.800 + tenths below 0.057
  • 0.850 + units below 0.007
Submitted by msoutopico