July 2017
Intermediate to advanced
158 pages
3h 41m
English
Let's look at few examples to understand these basic quantifiers better.
Which regex pattern should be used to match a two-digit year or a four-digit year?
\d{2}|\d{4}
Which regex pattern should be used to match a signed decimal number? The pattern should also match a signed integer number:
^[+-]?\d*\.?\d+$
Here is the breakup of the preceding regex pattern:
The preceding regex will match all of these inputs:
Read now
Unlock full access