Created
September 1, 2019 09:06
-
-
Save heinthanth/63503ff289357cbfa78d2fa543d67335 to your computer and use it in GitHub Desktop.
Vowel-Regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = "Hello, World! I'm Hein Thanth"; | |
var pattern = /[aeiou]/i; | |
var result = str.match(pattern); | |
// now result = [e, o, o, I, e, i, a] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment