Re: [PHP] regexp magic

2002-05-28 Thread Lars Torben Wilson
On Tue, 2002-05-28 at 16:56, Dan Harrington wrote: > Greetings everyone, > > I'm trying to do some regexp magic and just can't seem to > get it done with PHP. > > Basically I want to evaluate a word and if the last character > of the word is an 's', to knock it off, unless there are > two conse

[PHP] regexp magic

2002-05-28 Thread Dan Harrington
Greetings everyone, I'm trying to do some regexp magic and just can't seem to get it done with PHP. Basically I want to evaluate a word and if the last character of the word is an 's', to knock it off, unless there are two consecutives at the end of the word. So 'boys' would become 'boy' and