History: Regexps
Comparing version 5 with version 6
Lines: 17-20 | Lines: 17-25 | ||
+ {CODE()} | + {CODE()} | ||
^((0(\.[0-9]*)?)|(1(\.0)?))$ | ^((0(\.[0-9]*)?)|(1(\.0)?))$ | ||
+ | {CODE} | ||
+ | + ~tc~^~/tc~ | ||
+ | # Numbers between 0 and 100 (useful for positive values under and 3 digit threshold like 100): | ||
+ | + {CODE()} | ||
+ | ^[0-9]{1}$|^[0-9]{1}[0-9]{1}$|^[1]{1}[0]{1}[0]{1}$|^100$ | ||
{CODE} | {CODE} | ||
+ ~tc~^~/tc~ | + ~tc~^~/tc~ |