Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Pig Latin

by chromatic (Archbishop)
on Feb 17, 2000 at 03:23 UTC ( #3595=note: print w/replies, xml ) Need Help??


in reply to Pig Latin

s/\b([aeiou])(\w*)/$1$2way/g; s/\b([^aeiou .]+)([aeiou]\w*)/$2$1ay/g;
This one handles spaces and periods, using greediness and word anchors to do the trick. It helps to handle rule b) first, when using two regexes.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://3595]
help
Chatterbox?
holli just found out one of his friends is a flat-earther
LanX revealed by his flat jokes?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-10-24 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (289 votes). Check out past polls.

    Notices?