Regex101 icon indicating copy to clipboard operation
Regex101 copied to clipboard

Lucene / Elastic regex flavor

Open hartman opened this issue 2 years ago • 1 comments

Flavor Request for Lucene

Lucene is the foundation of many search engine technologies, most prominently perhaps Elasticsearch, itself used by a whole slew of search engine and dashboarding solutions. It uses quite a different form of regex. I always have trouble writing these queries, simply because they are quite a bit different from what is possible in pcre.

The documentation is here: https://lucene.apache.org/core/7_3_0/core/org/apache/lucene/util/automaton/RegExp.html https://www.elastic.co/guide/en/elasticsearch/reference/current/regexp-syntax.html

Specifically:

  • Limited set of operators
  • no anchoring ^ (beginning of line) or $ (end of line)
  • A few additional operators and flags

hartman avatar Aug 24 '23 11:08 hartman

+1 for this! Please add flavor support for Elasticsearch/Lucene!

grizzlycode avatar Nov 09 '23 19:11 grizzlycode