I’m struggling to extract data between quotation marks in the following text:
msgid: "something"
msgidd: "something"
msgid:"something"
msgidd:"something"
msgid: "something"
msgidd: "something"
With (?<=msgsid:.{1}?)(.+[^"]") I get what follows after msgid: but not always what’s inside the quotation marks. My goal is to replace what’s inside the quotation marks yet keep msgid: intact. Any help would be appreciated.
Thanks.
Using lookbehind makes it a lot more difficult as the matching allowed is much more limited. It’s easier to do:
And do the replacement as
$1"something-replacement"