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 214659 - "Containing Text" field in "Find (in Projects)" interpreted as regex even if "Regular Expression" checkbox is not checked
Summary: "Containing Text" field in "Find (in Projects)" interpreted as regex even if ...
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-23 13:08 UTC by host
Modified: 2012-06-25 06:32 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 host 2012-06-23 13:08:01 UTC
Using NB 72 RC1, in the project tree, I right click on a directory and in the appearing dropdown menu I select "Find...". In the opening window I enter "*:" for the field "Containing Text" - with "Regular Expression" deselected - to find all files that contain the string "star followed by colon" and click on the "Find" button. In the result window I get as result all files containing a colon and something or nothing befor that. So it seems that the "Containing Text" is interpreted as regex albeit "Regular Expression" is deselected. Is this intentional or really a bug?
Comment 1 Jaroslav Havlin 2012-06-25 06:32:54 UTC
This is intentional (but still may be considered as a bug).
If regular expression checkbox is deselected, the value in "Containing Text" field is interpreted as a simple pattern. "?" matches any character and "*" matches any string. You can escape these special characters with backslash to interpret them as literals ("\?", "\*").
This is described in tool-tip text of the field.

Please check issue 207913. You can vote for it or add your comment. Thank you.