Or much better: use a Button with PopupMenu right beside the input field, 
where you can select the tokens.

Since, I'm not an expert in regular expressions (and I can't remember the 
tokens), I do not use this powerful feature. It's too inconvenient for me.

Tom

At 15:58 19.11.01 +0100, you wrote:
>Hi Eugene,
>
>>You should use $1 and $2 instead of \1 and \2
>
>Ah. Perl style. I didn't find anything in the documentation, perhaps I 
>should have looked at the Oromatcher documentation. But then again I'd 
>recommend putting it somewhere in the IDEA documentation.
>
>Thanks,
>Marc Wirth
>
>
>
>>----- 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
>
>
>_______________________________________________
>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

Reply via email to