Package net.sf.eBus.util.regex
This regular expression package is designed to perform
efficient pattern matching over a
TernarySearchTree.
A Pattern may be used
with the ternary search tree (TST) methods keySet,
values and entrySet. Only those entries which
match the pattern are returned.
Warning: Pattern matching over a TST may result in
significant CPU usage. A pattern with wildcards first
(example: ".+xyz") will traverse the entire TST. If you must
use such patterns but you do not need to find all matching
entries, then consider using the maxMatches
parameter. Once the specified number of matches are found,
the method stops the search and returns.
If you need to perform regular expression pattern matching
on text only, then use the Pattern
package. Do not use this package for text matching
only.
If you do use pattern matching, then best to use patterns that begin with concrete values and place wildcards at the end.
-
Class Summary Class Description AnyChar This regular expression component matches any character.CharacterSet This regular expression component matches only those characters listed in its set.Component Abstract base class for all regular expression components.Literal This regular expression component matches one character.Pattern A compiled regular expression representation.