How to match a token not be quoted?
- From: Bingfeng.Zhao@xxxxxx (Bingfeng Zhao)
- Date: Tue, 29 Jan 2008 13:09:54 +1100
Hello,
I want to a cure regex that match following requirements: given $line =
'abc abc "abc abcc" abcc', I want to replace all instances of "abc" that
not in quotation with, say 'd', so I expect I get 'd d "abc abcc" dc'.
What should I write my regex? I try some and referred cook book also, no
solution. Thanks in advance.
Best regards,
Bingfeng
- Follow-Ups:
- Re: How to match a token not be quoted?
- From: John W. Krahn
- Re: How to match a token not be quoted?
- From: Rob Dixon
- Re: How to match a token not be quoted?
- From: Chas. Owens
- Re: How to match a token not be quoted?
- From: Gunnar Hjalmarsson
- Re: How to match a token not be quoted?
- Prev by Date: Re: file.db VS filedb
- Next by Date: Re: print records that match regexp
- Previous by thread: file.db VS filedb
- Next by thread: Re: How to match a token not be quoted?
- Index(es):
Relevant Pages
|
|