in reply to Rewrite a Regular Expression to be easier to understand
is what you're looking for? A suffix of any length? You can make all of those open parens into non-capturing ones if you want. Update: with the a-or-i spelling variation (allowing "vacition.msg").s/((((((((((((v)?a)?c)?[ai])?t)?i)?o)?n)?\.)?m)?s)?g)//;
|
|---|