Re: peal search/replace question...

2004-06-01 Thread Mike Jackson
I think you're best off trying the following regex: s:qtd:\Q/td\E:gs; \Q..\E ignore ANY "special" characters between them, with the possible exception of \ itself. $variables are interpolated before this occurs, so you can validly go s"blah"\Q$something\E"gs; if you so wish - using the s''' form

RE: peal search/replace question...

2004-06-01 Thread bruce
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of james donohoe Sent: Tuesday, June 01, 2004 8:10 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: peal search/replace question... It's kind of foul but it works... This is for NT. perl -pi.bak -e "s

RE: peal search/replace question...

2004-06-01 Thread bruce
ames donohoe [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 8:10 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: peal search/replace question... It's kind of foul but it works... This is for NT. perl -pi.bak -e "s/qtd/\/td/" test.txt & del test.txt.bak T

Re: peal search/replace question...

2004-06-01 Thread james donohoe
It's kind of foul but it works... This is for NT. perl -pi.bak -e "s/qtd/\/td/" test.txt & del test.txt.bak There's probably a way to not create the .bak file but I haven't spent any time on it. I'd love to hear a better solution though, please share if you find one. -james donohoe On Tue, 1