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.

Source: NetBeans User FAQ