I'm using regex to match all non-quoted property names in my json files. Eclipse has no problem finding the desired matches, but when I want to replace the matched strings with "$2"
, I get this error: Match string has changed in file filename.json. Match skipped
Here's the regex I'm using:
((\w+)\s*(?!['"])(?=:))
Any idea on how to work around this issue?
It's a known bug: replace don't work when using a regex with a lookahead
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With