Class RegexUnifier

java.lang.Object
com.oracle.truffle.regex.analysis.RegexUnifier

public final class RegexUnifier extends Object
Generates a "unified" regular expression representation where all single characters are replaced by "x" and all character classes are replaced by "[c]". The result is supposed to represent the expression's general structure and complexity, and enable the user to find structurally equivalent expressions. Example: /(.*yui[a-xU-Y](,|\w))/ -> /([c]*xxx[c](x|[c]))/