May 2015
Intermediate to advanced
112 pages
2h 14m
English
There is only one syntax to specify your own multipliers but because of the different parameter options available, you get three different functional options.
If you want to match a given character a concrete number of times, you can simply specify the number of allowed repetitions inside curly braces. This doesn't make your patterns more flexible, but it will make them shorter to read. For example, if we were implementing a phone number we could type /\d\d\d-\d\d\d\d/. This is, however, a bit long and instead, we can just use custom multipliers and type /\d{3}-\d{4}/, which really shorten it up making it more readable.
Next, if you just want to set a minimum number of times that the pattern ...
Read now
Unlock full access