You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An non-negative integer number is `pattern:\d+`. We should exclude `0` as the first digit, as we don't need zero, but we can allow it in further digits.
3
+
4
+
So that gives us `pattern:[1-9]\d*`.
3
5
4
6
A decimal part is: `pattern:\.\d+`.
5
7
6
8
Because the decimal part is optional, let's put it in parentheses with the quantifier `pattern:'?'`.
7
9
8
-
Finally we have the regexp: `pattern:\d+(\.\d+)?`:
10
+
Finally we have the regexp: `pattern:[1-9]\d*(\.\d+)?`:
0 commit comments