Can I use back references when using regular expressions in the Find/Replace dialog?

Yes. For back referenes in the find/replace dialog use $1. This string will be replaced by element from first parenthesis. You can use $2, $3, etc. for next elements if you want to replace more of them at once. $0 is used for the whole searched string.

Applies to: NetBeans 4.1, 5.x, 6.x

Platforms: All

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo