I was trying comment out java code in .jsp so tried replace '^' regex with //,
but it is impossible in the Nb Editor.
1) open a .java
2) invoke Edit > Replace
3) find: ^
4) replace with: //
5) check 'Regular Expression' check box
5) chose Replace
ERROR: "'^' not found" message appears at status line
ERROR2: Attempt to replace '^(.)' with '//\1' doesn't work too.
Searching works if you use regular expression of the form: ^.
We should investigate why there is no match found for the other variants.
moving opened issues from TM <= 6.1 to TM=Dev
I tried to replace '^(.)' with '//\1' and all was replaces, what exactly do not work?
Can't reproduce with 090409, feel free to reopen if it still do not work as expected.
Still reproducible in 200904100201
I was trying to comment out all lines (put: '//' at the beginning of each line). In VIM editor I can do it by:
After the first attempt i understood that Nb have problem with 'Boundary Matchers' (beginning / end of a line, ...) they
does not match any real chars so I was trying to pass by the second RE with 'Back Reference' but it does not work as well.
It seems editor can't find just start of line, end of line etc, it works like it need smth to be selected after search
or smth real can be replaced. Also nb do not combine info from find and replce fields as I understand.
So the issue is real, but it may be not an issue but some limitation in design on find-replace functionality. For
example openoffice replace dialog works the same way and can't find just "^".
For this issue there is alternative values(workaround) for search and replace fields: "(.+)" in search and "//$1" in
replace, this way all not empty lines will be commented.
Not so serious, lowering priority.
Can you please explain a little bit more? AFAIK the majority of coder's editors have proper RegExp support. Why it is
not serious for the Nb Editors?
It is not so serious because
1. we have it like this for the last 5 or so years
2. workaround exists
3. this issue has gathered exactly zero votes
Am I missing something? Of course I will be more than happy to apply any submitted patches (that would make sense).
*** Bug 181168 has been marked as a duplicate of this bug. ***
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.
Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss