Re: [PHP] Correcting contractions

2005-06-25 Thread Dotan Cohen
On 6/25/05, Bob Winter <[EMAIL PROTECTED]> wrote: > Dotan, > > Your task intrigued me, so I put together a function that will help process > your data: > ><<< snippped and trimmed as per Buehan Khalid suggeted >>> > ?> > > --Bob > Thank you Bob! This is the route that I had tried going do

Re: [PHP] Correcting contractions

2005-06-24 Thread Robert Cummings
On Sat, 2005-06-25 at 02:17, Burhan Khalid wrote: > Dotan Cohen wrote: > > > Ill I knew about, its I didn't. I didn't mean to put ill in there... > > > > Should I enter each contraction twice (for the capitalization), or > > should I try to do something smart so that the capitalization will > > h

Re: [PHP] Correcting contractions

2005-06-24 Thread Burhan Khalid
Dotan Cohen wrote: Ill I knew about, its I didn't. I didn't mean to put ill in there... Should I enter each contraction twice (for the capitalization), or should I try to do something smart so that the capitalization will happen automatically. The 'I' contractions are special, I will deal with

Re: [PHP] Correcting contractions

2005-06-24 Thread Bob Winter
Dotan Cohen wrote: On 6/25/05, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: Hi friends, I've got a nice array of contractions (I've, I'd, they'll,...). My intent is to take submitted data and replace, say, every occurance of 'theyd' with 'they'd

Re: [PHP] Correcting contractions

2005-06-24 Thread Dotan Cohen
On 6/25/05, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: > > Hi friends, I've got a nice array of contractions (I've, I'd, > > they'll,...). My intent is to take submitted data and replace, say, > > every occurance of 'theyd' with 'they'd'. So far, so

Re: [PHP] Correcting contractions

2005-06-24 Thread Robert Cummings
On Fri, 2005-06-24 at 21:02, Dotan Cohen wrote: > Hi friends, I've got a nice array of contractions (I've, I'd, > they'll,...). My intent is to take submitted data and replace, say, > every occurance of 'theyd' with 'they'd'. So far, so good. The trick > is doing it if the first character is upperc