[ BUILD # : 200809220201 ]
[ JDK VERSION : 1.6.0_07 ]
Assume, you want find:
, and maybe replace it by nothing,
or find white-spaces or braces at line-end.
These simple actions IMHO should be possible, by marking the search
pattern by mouse, and search by Ctrl-F.
Also the replace string in Replace action should work, if mouse
selected pattern contains tabs or line-ends.
Most other editors have this, e.g. Notepad++.
In description you are talking about editor search. So reassign to the editor for evaluation.
As for the "Find In Project" functionality you can find line breaks by using '\r' and '\n' in the regexp. The same for
the replace ...
Yes, the regex way is a kind of workaround here, but ...
1. it must be learned, nothing for beginners, of if you are in a hurry. wildcard's are much more complicated than just
2. I'm more thinking about a cut-'n-paste usage for find AND replace.
What about of transforming the cut string to a valid regex-string on pasting it into the Find/Replace dialogue?
(In reply to comment #2)
> What about of transforming the cut string to a valid regex-string on pasting it
> into the Find/Replace dialogue?
Another interesting idea.
This would slightly teach users in regex over the time, a little!
But please have a look on combined find/replace dialogue of NotePad++, and how they deal with \n \t etc..
This is my favourite from all editors.
I think, we don't need 2 separate dialogues and actions for find and replace, but better availability in any context e.g. bug 187174 148984 146810.
*** Bug 194292 has been marked as a duplicate of this bug. ***
*** Bug 189029 has been marked as a duplicate of this bug. ***
*** Bug 184191 has been marked as a duplicate of this bug. ***
*** Bug 158046 has been marked as a duplicate of this bug. ***
*** Bug 195575 has been marked as a duplicate of this bug. ***
I will change whole infrastructure for search, which will enable multiline search and regexps.
This is a big change and it doesn't have a high priority now. I hope it will be at least in 7.3.
Regexp search/replace is working in NB 8.0 FCS build. I just used it to match newline characters with \n. I think this issue can be closed.
(In reply to swpalmer from comment #10)
> Regexp search/replace is working in NB 8.0 FCS build. I just used it to
> match newline characters with \n. I think this issue can be closed.
I do not think so. The request  was to paste in text which has linebreaks and which isn't formatted as regex.
I also don't think this should be closed. The functionality needed is to allow the user to select text in the editor and find other occurrences of that selected text at least within the current document.
For me, I want to be able to find duplicate blocks of code in order to identify functionality that can be replaced with more maintainable functions.