Skip navigation links
eBus
4.5.0

Package net.sf.eBus.util.regex

This regular expression package is designed to perform efficient pattern matching over a TernarySearchTree.

See: Description

Package net.sf.eBus.util.regex Description

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 java.util.regex 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.

Skip navigation links
eBus
4.5.0