You should use $1 instead of  \1.
IDEA uses oromatcher regular expression library which is now one of Apache
projects.
http://jakarta.apache.org/oro/index.html

Best regards,
Eugene Zhuravlev
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure!"

----- Original Message -----
From: "Wangjammer5" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 21 January, 2002 8:31 PM
Subject: [Eap-list] regexp in "replace" expression?


>
> Hi,
>
> Does IDEA support regexp in the replace expression of a "Replace..." ?
> i.e.:
>
> Text to find: ([a-z][a-z]),
>
> Replace with: \1=
>
> i.e. I want to replace strings like "ab," with "ab=".
>
> I'm a regexp newbie but all the docs I can find say that should work, but
> IDEA just puts "\1=" in there instead of "ab=". This implies it doesn't
> propagate the regexp matches to the "replace" processing.
>
> Thanks
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W<A> ~~~~~
> (o) Wangjammer5 (Marc Palmer)
> ( ) Wangjammer7
>
> www.wangjammers.org = Java Consultants (Web|Smartcards|Crypto)
>
>
>
> _______________________________________________
> 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