/regex-matcher

A simple regular expression matching library

Primary LanguageJava

regex-matcher

A simple regular expression matching library

Based on examples in Chapter 17 and 18 of Compiler Construction Using Java, JavaCC, and Yacc by Anthony J. Dos Reis

Currently the usage of the following regex special characters is supported: '*', '.', '+', '?', '(', ')'

Usage Examples

String regex = "a*b*c*";
Matcher matcher = new Matcher(regex);
boolean isMatch = matcher.match("aaabbc");