   Advanced Regular Expression  Help
  Can someone please write me a Regex that:1)Match all characters except AEIOU [^AEIOU]2)And all except (W) and (Y) (with brackets)It should be One regex.   
  /[AEIOU]|\([WY]\)/ (in Perl notation) will match a string which contains either of those things. Then invert the logic in your code so that you do whatever if the pattern is *not* matched. General "and" logic is hard to do with regexes in general ("followed by" is easy, but "and" requires re-scanning the string); "or" logic is easier, so it's usual to set things up this way.   ;  LuckyOne, this sounds too much like a homework problem. Even if it's not one, it doesn't really meet this forum's minimum standard of asking a question which you could figure out with a little bit of work and research. Closed.   