This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
How to reproduce: Open file. Select multiple lines of text. hit Ctrl-h to begin the search and replace operation ensure regular expression check box is set enter beginning of line character as pattern ( "^" ) enter any text to be inserted at begging of each line. Hit 'replace all' button. Current behavior: Nothing is found. Expected behavior: Entered text is inserted at the beginning of all selected lines.
Umm, I'm not sure if regex can be used this way. Anyway, this is not a big deal.
Created attachment 102039 [details] text being edited using RE
Created attachment 102040 [details] result of edit on text1
This IS a big deal, and REs ARE used in that way. Try it in vim; try it in perl. But wait, there's more. Try find/replace using REs on the text in attachment text1. Use Find:^(.) Replace:#$1 or Find:(^.) You get the result in text2.
Regular expression replace of '^' with some text, e.g. '#' works in JEdit as well. I guess JEdit is using the Java regular expression handlers.
*** This bug has been marked as a duplicate of bug 73615 ***