Re: Matching quoted text question...

2003-09-08 Thread John W. Krahn
Rob Dixon wrote: > > John W. Krahn wrote: > > > > $TextBlockToConvert =~ s/"([^"]*)"/length $1 ? '"\1<\/Font>"' : > > '""'/eg; > > Almost right! But the deprecated \1 in the replacement string won't > work with the /e modifier: it needs to be $1. Although I'm sure you > knew that. Yes, but I di

RE: Matching quoted text question...

2003-09-08 Thread Akens, Anthony
Hello all... I'm wanting to write a script that scans a file, ignoring all lines until it reaches a certain section, then processes all lines in that section that are not comments, until it reaches the end of that section. The section would be designated like this: ## Beging Processing ## ## En

Re: Matching quoted text question...

2003-09-08 Thread Rob Dixon
John W. Krahn wrote: > > Rodney Wise wrote: > > > > > I'm trying to place HTML Tags around the contents of Quoted material. > > > > I'm using the following PERL code: > > $TextBlockToConvert =~ s/"(.+?)"/"\1<\/Font>"/g; > > > > Below, is an example of problem text this code chokes on. > > > >

Re: Matching quoted text question...

2003-09-08 Thread John W. Krahn
Rodney Wise wrote: > > I'm trying to place HTML Tags around the contents of Quoted material. > > I'm using the following PERL code: > $TextBlockToConvert =~ s/"(.+?)"/"\1<\/Font>"/g; > > Below, is an example of problem text this code chokes on. > > Example Text:msgStop("", "Invali

Matching quoted text question...

2003-09-08 Thread Rodney Wise
I'm trying to place HTML Tags around the contents of Quoted material. I'm using the following PERL code: $TextBlockToConvert =~ s/"(.+?)"/"\1<\/Font>"/g; Below, is an example of problem text this code chokes on. Example Text:msgStop("", "Invalid date") 1. The 1st set of Quotes