[
https://issues.apache.org/jira/browse/LUCENE-9336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089621#comment-17089621
]
Adrien Grand commented on LUCENE-9336:
--------------------------------------
+1 I think that many users are used to these character classes and are probably
surprised when they don't work in RegexpQuery.
Since this is technically breaking, maybe only target 9.0 with this change?
> RegExp.java - add support for character classes like \w
> -------------------------------------------------------
>
> Key: LUCENE-9336
> URL: https://issues.apache.org/jira/browse/LUCENE-9336
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/other
> Reporter: Mark Harwood
> Assignee: Mark Harwood
> Priority: Major
>
> Character classes commonly used in regular expressions like \s for whitespace
> are not currently supported and may well be returning false negatives because
> they don't throw any "unsupported" errors.
> The proposal is that the RegExp class add support for the set of character
> classes [defined by Java's Pattern
> API|https://docs.oracle.com/javase/tutorial/essential/regex/pre_char_classes.html]
> I can work on a patch if we think this is something we want to consider.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]