Does anyone know if there's an easy way to go from ES's flavor of Regex to Java's?
For example, if I understand the documentation correctly:
the ES pattern /"some\doslike\path"/ would match some\doslike\path because everything between double quotes is escaped. However with Java the same pattern would (a) look for quotes and (b) try and interpret \d and \p as pre-defined character classes.
ES has a numeric range pattern /<001-100>/ matches 002 but not 2 or 02. Java pattern /<001-100>/ doesn't match any numbers because it doesn't have a numeric range pattern.
Does anyone know how to convert these ES "extras" into a java.util.regexp.Pattern that matches the same things? Or is there a java jar I can use to implement to use an alternative to java.util.regexp.Pattern that recognizes the entire set of ES regexp syntax?
Thanks.
p.s. no need to tell me "don't use regexes" or "regexes are slow" - but thanks for reading and being concerned.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.