* 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
466 B
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]
;