| Home >> All >> org >> apache >> [ regexp Javadoc ] |
org.apache.regexp: Javadoc index of package org.apache.regexp.
Package Samples:
org.apache.regexp
Classes:
RE: RE is an efficient, lightweight regular expression evaluator/matcher class. Regular expressions are pattern descriptions which enable sophisticated matching of strings. In addition to being able to match a string against a pattern, you can also extract parts of the match. This is especially useful in text parsing! Details on the syntax of regular expression patterns are given below. To compile a regular expression (RE), you can simply construct an RE matcher object from the string specification of the pattern, like this: RE r = new RE("a*b"); Once you have done this, you can call either of the ...
recompile: 'recompile' is a command line tool that pre-compiles one or more regular expressions for use with the regular expression matcher class 'RE'. For example, the command "java recompile a*b" produces output like this: // Pre-compiled regular expression "a*b" char[] re1Instructions = { 0x007c, 0x0000, 0x001a, 0x007c, 0x0000, 0x000d, 0x0041, 0x0001, 0x0004, 0x0061, 0x007c, 0x0000, 0x0003, 0x0047, 0x0000, 0xfff6, 0x007c, 0x0000, 0x0003, 0x004e, 0x0000, 0x0003, 0x0041, 0x0001, 0x0004, 0x0062, 0x0045, 0x0000, 0x0000, }; REProgram re1 = new REProgram(re1Instructions); By pasting this output into your code, ...
RECompiler: A regular expression compiler class. This class compiles a pattern string into a regular expression program interpretable by the RE evaluator class. The 'recompile' command line tool uses this compiler to pre-compile regular expressions for use with RE. For a description of the syntax accepted by RECompiler and what you can do with regular expressions, see the documentation for the RE matcher class.
RESyntaxException: Exception thrown to indicate a syntax error in a regular expression. This is a non-checked exception because you should only have problems compiling a regular expression during development. If you are making regular expresion programs dynamically then you can catch it if you wish. But should not be forced to.
REProgram: A class that holds compiled regular expressions. This is exposed mainly for use by the recompile utility (which helps you produce precompiled REProgram objects). You should not otherwise need to work directly with this class.
RETest: Data driven (and optionally interactive) testing harness to exercise regular expression compiler and matching engine.
CharacterIterator: Encapsulates different types of character sources - String, InputStream, ... Defines a set of common methods
REDebugCompiler: A subclass of RECompiler which can dump a regular expression program for debugging purposes.
REDemo: Interactive demonstration and testing harness for regular expressions classes.
REUtil: This is a class that contains utility helper methods for this package.
StreamCharacterIterator: Encapsulates java.io.InputStream as CharacterIterator.
ReaderCharacterIterator: Encapsulates java.io.Reader as CharacterIterator
StringCharacterIterator: Encapsulates String as CharacterIterator.
CharacterArrayCharacterIterator: Encapsulates char[] as CharacterIterator
RETestCase
| Home | Contact Us | Privacy Policy | Terms of Service |