[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4576) Search in property file using regular expressions

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Jul 10 11:09:29 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12475767#action_12475767 ] 

Viacheslav Kabanovich commented on JBIDE-4576:
----------------------------------------------

I added "Expression" option instead of "Case sensitive".
When "Expression" is not selected (as by default), filter is case insensitive, that complies with JBIDE-4572.
When "Expression" is selected, filter uses _regular expressions_ which are case sensitive.

In the expression mode, the filter will accept any string that contains the expression in it (so that substring search works in both modes).
To find the exact match, use sequences \A and \z in expression. For example, expression "\Adate\z" matches only string "date"; expression "\Adate" matches "date" and "dateline", expression "date\z" matches "date" and "Begin date", and expression "date" matches all of them.

If expression has a syntax error, it is reported in a label below the filter composite, and the filter is disabled (all properties are displayed).

Please note, that regular expression syntax does not use "*" for any characters and "?" for any one character, as it is suggested in the description. You have to use "." for any one character and ".*" for any characters. Symbols "*" and "?" are used to show that the preceding token is not required, for example, "a.a" matches "aba" but not "aa", while "a.?a" or  a.*a" matches both; besides  "a.*a" matches "abcda".

> Search in property file using  regular expressions
> --------------------------------------------------
>
>                 Key: JBIDE-4576
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4576
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: common
>            Reporter: Krasimir Goutcev
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.1.0.M3
>
>
> What you think about possibility to search using regular expression (*,?)
> When we have strings like   "Start date" , "Begin date", ..."Blabla date" if type *date to see all this strings.
> * - any characters
> ? - only one character 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list