Skip to content

Instantly share code, notes, and snippets.

@uurtech
Last active June 12, 2019 07:40
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 uurtech/a6ef40301cff5baae836d7290b6fde21 to your computer and use it in GitHub Desktop.
Save uurtech/a6ef40301cff5baae836d7290b6fde21 to your computer and use it in GitHub Desktop.
Check if first and last letter same and vovels at the same time
function regexVar() {
var re = /^[a].*[a]$|^[e].*[e]$|^[i].*[i]$|^[o].*[o]$|^[u].*[u]$/;
return re;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment