Original Post
🔒 Locked
Advanced Regular Expression Help
Advertisement
/[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.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement