Problem with Replace in Eclipse
Posted
by Imran
on Stack Overflow
See other posts from Stack Overflow
or by Imran
Published on 2010-04-03T08:16:55Z
Indexed on
2010/04/03
8:23 UTC
Read the original article
Hit count: 234
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?
© Stack Overflow or respective owner