Package com.basistech.tclre
package com.basistech.tclre
This is a 100% Java version of the regular expression library from TCL,
in turn derived from the "Henry Spencer" HSRE package. The public API
to this package is designed to be close to the API of
the standard Java regular library in java.util.regex. However:
- The pattern language is not the same as the Java.
- The pattern compilation flags are different; see
PatternFlags
- Matcher creation accepts
ExecFlags
which change the runtime behavior. - Not all of the options to
Matcher
are provided; note especially the lack of 'transparent bounds'.
HsrePattern.compile(String, PatternFlags...)
.
This returns an object that implements RePattern
, which will in turn
create objects that implement ReMatcher
.-
ClassDescriptionFlags that control runtime execution.Grep command line to exercise the regex package.A compiled regular expression.Flags that accompany a regular expression and modulate its interpretation.Exception from TCLREException thrown for Thread.interruptUnchecked exceptions in regexes.A matcher; an object that uses a regular expression to search or match.A compiled regular expression.