Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with Replace in Eclipse

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?

like image 592
Imran Avatar asked Apr 03 '10 08:04

Imran


1 Answers

It's a known bug: replace don't work when using a regex with a lookahead

like image 191
cement Avatar answered Oct 06 '22 07:10

cement