this one uses the match() method and regex
kata link: https://www.codewars.com/kata/5a29a0898f27f2d9c9000058/javascript
match() info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match
regex character class info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
regex info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions