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.

Bug 100407 - Search-and-replace cannot handle newlines
Summary: Search-and-replace cannot handle newlines
Status: RESOLVED DUPLICATE of bug 26810
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 01:47 UTC by Jesse Glick
Modified: 2007-08-08 16:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-04-10 01:47:09 UTC
As far as I can tell, there is no way for search for text containing newlines,
or replace text with a string containing newlines. The text field just makes it
a space.

Emacs handles it fine, using the Ctrl-Q quoting prefix.
Comment 1 Vitezslav Stejskal 2007-04-10 07:52:46 UTC
You can use regular expressions, eg. tick the check box and use \n for line
ends. Is that what you are after? Or perhaps I don't understand the report.
Comment 2 Jesse Glick 2007-04-10 16:33:10 UTC
The regular expression trick does work in the editor's search dialog. It does
not work for Find in Files.
Comment 3 lordpixel 2007-06-25 15:47:00 UTC
This appears to be a duplicate of 26810. Or perhaps we want to change this bug to be about Find in Files specifically?

There is no workaround for the 'Replace' box that I can find. It seems to be impossible to use Search & Replace to
insert newlines :(
Comment 4 Jesse Glick 2007-08-08 16:18:03 UTC

*** This issue has been marked as a duplicate of 26810 ***