regex - How can we convert regular expression to ANTLR 4 Expression -
i searching way or tool convert regular expression antlr 4 expression not find suitable. i'm curious "can convert or not." if not, assume antlr 4 expression , regular expression looks same look-wise totally different. please correct if i'm wrong.
antlr lexer rules regular expressions, in formal sense. means won't pattern matching features lookahead/lookbehind/captures etc out of box. can insert custom code in rules if need more control on matching process.
as syntax, it's bit different standard regex syntax.
instance, in antlr write ~[a-z]
instead of [^a-z]
Comments
Post a Comment