Can’t find and replace text within multiple quotations

I’ve been bashing my head against this for a while. Regex is the answer, I’m sure, but my regex is very bad. This will be a no-brainer for many of you. Here is my problem:

I am trying to search this exact text in multiple config files (including the spaces and quotes). This is exactly as it appears:

"settingflag"                "0"

And I want to replace it with:

"settingflag"                "1"

Essentially, I just want to change that specific 0 to a 1 in these files. Would be great if it was the only instance of a zero in these config files, but unfortunately that’s not the case. The multiple quotes obviously mess up the search. What is the simple solution to this? I’ve messed around with regex but even when I’m doing what I am sure is correct (^“settingflag” “0”$), it fails to find the entire string.

Thanks for any help on this.

Read more here: Source link