Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

466 B

title
title
Match All Non-Numbers

Match All Non-Numbers


Hints

Hint 1

  • You should try using a global flag.

Hint 2

  • Try a shorthand character for non-digits characters.

Solutions

Solution 1 (Click to Show/Hide)
let noNumRegex = /\D/g;

Code Explanation

  • The \D shorthand character is used to match non-digits characters, it has the same result as using [^0-9];