| java.lang.Object com.tc.jrexx.regex.Pattern
All known Subclasses: com.tc.jrexx.regex.PatternPro,
Pattern | public class Pattern implements Cloneable(Code) | | Regular expression based on a minimized deterministic automaton (DFA) and designed as an immutable set of strings.
Use this class to create a regular expression and match strings against it.
for example:
to check whether a given string is a number try
new Pattern("[0-9]+").contains(s)
author: Ralf Meyer version: 1.1 |
Pattern | public Pattern(String regEx)(Code) | | creates a minimized deterministic automaton (DFA) from the given regEx pattern.
|
contains | public boolean contains(String s, int offset, int length)(Code) | | |
contains | public boolean contains(char[] chars)(Code) | | |
contains | public boolean contains(char[] chars, int offset)(Code) | | |
contains | public boolean contains(char[] chars, int offset, int length)(Code) | | |
|
|