RegularExpression

extends Node

RegularExpression

Constructors

RegularExpression other, Node deep pattern = other.pattern; Node pattern org.apache.oro.text.regex.PatternCompiler compiler = new org.apache.oro.text.regex.Perl5Compiler(); try { this.pattern = compiler.compile(pattern); }catch(org.apache.oro.text.regex.MalformedPatternException exc) { throw new ObjectBoxException("invalid regexp pattern: "+pattern); } this.pattern = java.util.regex.Pattern.compile(pattern); Node pattern org.apache.oro.text.regex.PatternCompiler compiler = new org.apache.oro.text.regex.Perl5Compiler(); try { this.pattern = compiler.compile(pattern.stringValue()); }catch(org.apache.oro.text.regex.MalformedPatternException exc) { throw new ObjectBoxException("invalid regexp pattern: "+pattern.stringValue()); } this.pattern = java.util.regex.Pattern.compile(pattern.stringValue());

Type Functions

match(Node text)

match(Node text, Node limit)

matches(Node text)

split(Node text)

Performs a regular expression split on the string value of text.

Returns: A nodeset containing the substring before and after each match in this String of the regular expression pattern.

split(Node text, Node limit)

string()

substitute(Node text, Node substitution)

substitute(Node text, Node substitution, Node limit)

Functions inherited from Node