Brian Feldman created LUCENE-9718:
-------------------------------------

             Summary: REGEX Pattern Search, character classes with quantifiers 
do not work
                 Key: LUCENE-9718
                 URL: https://issues.apache.org/jira/browse/LUCENE-9718
             Project: Lucene - Core
          Issue Type: Bug
          Components: core/search
    Affects Versions: 8.6.3, 7.7.3
            Reporter: Brian Feldman


Character classes with a quantifier do not work, no error is given and no 
results are returned. For example \d\{2} or \d\{2,3} as is commonly written in 
most languages supporting regular expressions, simply and quietly does not 
work.  A user work around is to write them fully out such as \d\d or [0-9][0-9] 
or as [0-9]\{2,3} .

 

This inconsistency or limitation is not documented, wasting the time of users 
as they have to figure this out themselves. I believe this inconsistency should 
be clearly documented and an effort to fixing the inconsistency would improve 
pattern searching.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to