That does not work, but I put in a request for it.

Grzegorz Mucha wrote:

> Hello eap-features,
> 
> Suppose I am looking to replace some usages of a method, first finding
> it with regular expression search. However I would like to insert some
> substrings taken from the first string into the second- but is that
> possible (through the \1..\n references)?
> 
> suppose I have (a purely fictional example):
> getFieldValue(String, boolean);
> 
> all occurences of getFieldValue get replaced to:
> 
> getFieldValue(this,"lastName",false);
> 
> through search string:
> getFieldValue\("(.*)", ([^)]+)\) -> getFieldValue(this,\1,\2)
> 
> 


-- 

Erb

==============================================================
"The only time I like in the morning is afternoon."
     - Russell D. Cooper

"If you do everything, then you're all done."
     - Melissa F. Cooper

"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
     - Larry Wall
==============================================================


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to