Guest User

Untitled

a guest
Mar 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var s = 'hhollliillpiiii';
  2. var sinvocales = s.replace(/[aeiouAEIOU]/g, '');
  3. console.log(sinvocales); // imprime "hhlllllp"
  4.  
  5. var s = 'hhollliillpiiii';
  6. var sinvocales = s.match(/[^aeiouAEIOU]/g);
  7. console.log(sinvocales); // imprime ["h", "h", "l", "l", "l", "l", "l", "p"]
  8.  
  9. /([^aeiou]{2,})/gi
Add Comment
Please, Sign In to add comment