Regular expressions
17.2
Lesson

\d to match any digit more examples

The order number of a shipping company starts with two digits. We want our regular expression to check that.

As we can see above /d/d is checking that that word should have two digits next to each other. As long as the word has two digits next to each other, the regular expression will pass, otherwise it will fail.