RE: Removing what was matched

2003-03-18 Thread David Olbersen
1-858-676-2277 x2152 > -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2003 1:52 PM > To: [EMAIL PROTECTED] > Subject: Re: Removing what was matched > > > David Olbersen wrote: > > I'm trying to move over a strin

Re: Removing what was matched

2003-03-18 Thread Rob Dixon
David Olbersen wrote: > I'm trying to move over a string and match two types of patterns, > call them A and B. B always matches A, and A never matches B. > > To work this out I decided that once I matched A on my input string, > it would be a good idea to remove what I matched from the string. > >

RE: Removing what was matched

2003-03-18 Thread David Olbersen
- > From: David Olbersen > Sent: Tuesday, March 18, 2003 1:25 PM > To: [EMAIL PROTECTED] > Subject: Removing what was matched > > > I'm trying to move over a string and match two types of > patterns, call them A and B. B always matches A, and A never > matches B. &

Removing what was matched

2003-03-18 Thread David Olbersen
I'm trying to move over a string and match two types of patterns, call them A and B. B always matches A, and A never matches B. To work this out I decided that once I matched A on my input string, it would be a good idea to remove what I matched from the string. As a trivial example, I do this: