Skip to content

Instantly share code, notes, and snippets.

@heinthanth
Created September 1, 2019 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heinthanth/63503ff289357cbfa78d2fa543d67335 to your computer and use it in GitHub Desktop.
Save heinthanth/63503ff289357cbfa78d2fa543d67335 to your computer and use it in GitHub Desktop.
Vowel-Regex
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