in reply to (Ovid) RE: Pig Latin
in thread Pig Latin
I don't see the need to save 3 pieces of data. And using [^\W0-9_] is shorter than [bcdf..xyz] and [b-df-hj-np-tv-z] and it forces the reader to think for a second. ;). And I saved space with the quoting on the RHS.# updated (5 years later!) s/\b(qu|[^\W0-9aeiou_]+)?([a-z]+)/$1?"$2$1ay":"$2way"/ieg;
|
---|
Replies are listed 'Best First'. | |
---|---|
(Ovid) RE: Perl Golf
by Ovid (Cardinal) on Jul 23, 2000 at 23:49 UTC | |
by japhy (Canon) on Jul 24, 2000 at 00:00 UTC | |
by ybiC (Prior) on Jul 24, 2000 at 02:38 UTC | |
by japhy (Canon) on Jul 24, 2000 at 02:54 UTC | |
by Ovid (Cardinal) on Jul 24, 2000 at 03:10 UTC |