2018-10-04 14:47:55 +01:00
|
|
|
---
|
|
|
|
title: Match All Letters and Numbers
|
|
|
|
---
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
# Match All Letters and Numbers
|
2018-10-04 14:47:55 +01:00
|
|
|
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
2018-10-04 14:47:55 +01:00
|
|
|
|
2019-05-15 10:08:19 -07:00
|
|
|
```js
|
2019-07-24 00:59:27 -07:00
|
|
|
let quoteSample = "The five boxing wizards jump quickly.";
|
|
|
|
let alphabetRegexV2 = /\w/gi; // Change this line
|
|
|
|
let result = quoteSample.match(alphabetRegexV2).length;
|
2018-11-13 08:24:33 +01:00
|
|
|
```
|
2018-10-04 14:47:55 +01:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
</details>
|