I'm trying to devise a regex that matches from the first double-quote
character found to the next double-quote character that isn't part of
a pair; but for some reason, I'm having no luck.  Here's what I tried:

  /"(.*?)"(?!")/

Sample text:

  author: "Jonathan ""Dataweaver"" Lang" key=val

What I'm getting for $1 in the first match:

  Jonathan "

What I'm looking for:

  Jonathan ""Dataweaver"" Lang

What did I miss, and how can I most efficiently perform the desired match?

-- 
Jonathan "Dataweaver" Lang

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to