Hi Mark, You should use $1 and $2 instead of \1 and \2
Best regards, Eugene Zhuravlev IntelliJ Software, http://www.intellij.com/ "Develop with pleasure!" ----- Original Message ----- From: "Marc Wirth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 19 November, 2001 4:27 PM Subject: [Eap-list] 517 Search & Replace using Regular Expression woes > Hi all, > > I just wanted to do the following S&R operation: > > Search for : _(.+) +=(.+); > Replace with: _\1 = new Constant( \2, "\1"); > > to replace several occurences of public finals like this: > > public final static int INT_LOAD = 0; > public final static int INT_UNLOAD = 1; > > with > public final static int INT_LOAD = new Constant( 0, "LOAD"); > public final static int INT_UNLOAD = new Constant( 1, "UNLOAD"); > > but found that IDEA replaces each occurrence with: > public final static int INT_\1 = new Constant( \2, "\1"); > > It seems as if the "Replace with" expression is not parsed at all. > > Is this a bug or am I missing something here? > > Regards, > Marc Wirth > > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
