RegEx contains each vowel

Could also be used to test the existence of any specified set.

by Gerald Fullam

JavaScript

var strings = [
        "abceioussa",            // true
        "aeiou",                 // true
        "uioae",                 // true
        "odsidsfusjldkfuuuu",    // false
        "bcesdddsoaiaaau",       // true
        "aaaaaaaaeeeeeeeooooiu", // true
        "aasssssaeeeeeeeoeooo"   // false
    ],
    re_vowels = /\s*(?=.*a)(?=.*e)(?=.*i)(?=.*o)(?=.*u)\S*/;
for (var i = 0; i < strings.length; ++i) {
    console.log(re_vowels.test(strings[i]));
}