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