public class RegularExpression extends Object
For jdk <= 1.3, there are two available implementations:
org.apache.tools.ant.util.regexp.JakartaOroRegexp (the default)
Based on the jakarta-oro package
org.apache.tools.ant.util.regexp.JakartaRegexpRegexp
Based on the jakarta-regexp package
For jdk >= 1.4 an additional implementation is available:
org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
Based on the jdk 1.4 built in regular expression package.
<regexp [ [id="id"] pattern="expression" | refid="id" ] />
org.apache.oro.text.regex.Perl5Compiler,
org.apache.regexp.RE,
Pattern,
org.apache.tools.ant.util.regexp.Regexp,
Apache Ant| Constructor and Description |
|---|
RegularExpression() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPattern()
Gets the pattern string for this RegularExpression in the
given project.
|
Regexp |
getRegexp()
provides a reference to the Regexp contained in this
|
void |
setPattern(String pattern)
sets the regular expression pattern
|
public void setPattern(String pattern)
pattern - regular expression patternpublic String getPattern()
public Regexp getRegexp()
Copyright © 2001–2025. All rights reserved.