Regular Expression Builder for Java (reb4j) is a simple set of classes that encapsulates the regular expressions used by java.util.regex.Pattern and provides facilities for composing larger expressions from sub-expressions. It effectively provides a way to build regular expressions without the risk of encountering PatternSyntaxExceptions at runtime.