Re: Regexp Question Again

2001-05-11 Thread Paul
--- "Gross, Stephan" <[EMAIL PROTECTED]> wrote: > I wasn't clear last time. I wrote: > >I want to match the following: > >1) the letters "PT" > >2) a space or nothing > >3) a word that may or may not be in parentheses or even not exist > >and return item #3 (which may be null) > >Example: > >PT

Re: Regexp Question Again

2001-05-11 Thread M.W. Koskamp
- Original Message - From: Gross, Stephan <[EMAIL PROTECTED]> To: 'Beginner Perl' <[EMAIL PROTECTED]> Sent: Friday, May 11, 2001 5:26 PM Subject: Regexp Question Again > I wasn't clear last time. I wrote: > >I want to match the following: >

Re: Regexp Question Again

2001-05-11 Thread Jeff Pinyan
On May 11, Gross, Stephan said: >I wasn't clear last time. I wrote: >>I want to match the following: >>1) the letters "PT" >>2) a space or nothing >>3) a word that may or may not be in parentheses or even not exist >>and return item #3 (which may be null) >>Example: >>PT (XYZ) or PT XYZ or PTXYZ

Regexp Question Again

2001-05-11 Thread Gross, Stephan
I wasn't clear last time. I wrote: >I want to match the following: >1) the letters "PT" >2) a space or nothing >3) a word that may or may not be in parentheses or even not exist >and return item #3 (which may be null) >Example: >PT (XYZ) or PT XYZ or PTXYZ or PT >should return "XYZ" except the la