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.
If you check the "Regular Expression" checkbox in a Find dialog (such as Find in Projects), the "Whole Words" and "Case Sensitive" checkboxes are disabled. However, in the editor's find bar, checking "Regular Expression" only disables the "Whole Words" checkbox. It should also disable the "Match Case" checkbox. Also, why use "Match Case" in one place and "Case Sensitive" in another? That option should be more consistently labeled. If you decide to go with "Case Sensitive," it should be hyphenated: "Case-sensitive."
The Match Case if editor Find works as expected when Regular Expression is checked. Where did you find 'Case sensitive'? I've opened Find in project dialog and the label is Match Case as in find dialog
> The Match Case if editor Find works as expected when Regular Expression is checked. 1. Open file in Editor and press Ctrl+F 2. Check "Regular Expressions" checkbox -> "Match Case" is still enabled, "Whole Words" is disabled (ok) -> The problem is that regexps are in principle case-sensitive... you need to do something like [Aa][Hh][Oo][Jj]... -> IMO current behavior is a nice feature... You can ignore case in regexps, if you want... what do you say, reporter? > Where did you find 'Case sensitive'? It is used in "Find in Projects" dialog... right-click the project and invoke Find...
> The problem is that regexps are in principle case-sensitive... you need to do something like [Aa][Hh][Oo][Jj]... No, reg.ex. can be case sensitive, see javadoc for class Pattern. Maybe there is space for enhancement for find in project to be like editor search :-) "Find in Projects" dialog seem to be consistent in current dev build. The 'Case sensitive' label was in 6.5
Sorry, I didn't realize Editor Find regex search actually worked with the "match case" option. I expected to have to do as joshis described. That is indeed very handy and should stay. (This must use the (?i) flag. I've wondered about the (?m) flag, but I guess that's a separate issue... literally.) > Maybe there is space for enhancement for find in project to be like editor search :-) I noticed your comment in issue 155266 to that effect. In light of our discussion here, I agree that Find in Projects should have case-insensitive regex support as Editor Find does. I'm changing this to an ENHANCEMENT and changing the summary to match. Yes, 6.5 has the inconsistent labels, but if that is already fixed in 7.0, that part is already addressed.
*** This issue has been marked as a duplicate of 148628 ***