s/([^aeiou_]+|)(\w*)(\s?)/$2&&$2.($1?$1:'y').'ay '/ige
Beware of bugs in the above code; I have only proved it correct, not tried it.
-- March 22, 1977, Donald E. Knuth
In reply to Re: Pig Latin
by Adam
in thread Pig Latin
by clintp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |