Class RegExp


public class RegExp extends Object
Simple wrapper for RegExp that avoids throwing StackOverflowErrors when working with regular expressions as this will crash an Elasticsearch node. Instead, these StackOverflowErrors are turned into IllegalArgumentExceptions which elasticsearch returns as a http 400.
  • Constructor Details

    • RegExp

      public RegExp(String s)
    • RegExp

      public RegExp(String s, int syntax_flags)
    • RegExp

      public RegExp(String s, int syntax_flags, int match_flags)
  • Method Details

    • toAutomaton

      public org.apache.lucene.util.automaton.Automaton toAutomaton()
    • toAutomaton

      public org.apache.lucene.util.automaton.Automaton toAutomaton(int determinizeWorkLimit)
    • getOriginalString

      public String getOriginalString()
    • toString

      public String toString()
      toString in class Object
    • kind

      public org.apache.lucene.util.automaton.RegExp.Kind kind()
      The type of expression.
    • exp1

      public RegExp exp1()
      Child expressions held by a container type expression.
    • exp2

      public RegExp exp2()
      Child expressions held by a container type expression.
    • min

      public int min()
      Limits for repeatable type expressions.
    • s

      public String s()
      String expression.
    • c

      public int c()
      Character expression.