Skip to content

Challenge Find Numbers with Regular Expressions

SaintPeter edited this page · 1 revision
Clone this wiki locally

Find Numbers with Regular Expressions

We can use special selectors in Regular Expressions to select a particular type of value.

One such selector is the digit selector \d which is used to grab the numbers in a string.

It is used like this: /\d+/g.

Something went wrong with that request. Please try again.