This regular express converts its input into pig latin.
s/\b(([bcdfghjklmnpqrstvwxyz]*)([\w']+))\b/$2 eq "" ? "$1way" : "$3$2a +y"/gie;

Replies are listed 'Best First'.
Re: Pig Latin Regular Expression
by TStanley (Canon) on Apr 12, 2001 at 06:53 UTC