This regular express converts its input into pig latin.
s/\b(([bcdfghjklmnpqrstvwxyz]*)([\w']+))\b/$2 eq "" ? "$1way" : "$3$2a
+
y"/gie;
[download]
Comment on
Pig Latin Regular Expression
Download
Code
Replies are listed 'Best First'.
Re: Pig Latin Regular Expression
by
TStanley
(Canon)
on Apr 12, 2001 at 06:53 UTC
A quick search also revealed
this
node by
clintp
and another
one
by our
fearless leader
.
TStanley
In the end, there can be only one!
[reply]
Back to
Cool Uses for Perl