A regular expression datatype. Keeps an instance of the compiled expression for speed purposes. This compiled expression is lazily evaluated (it is compiled the first time it is needed). The syntax is the dependent on which regular expression type you are using. The system property "ant.regexp.regexpimpl" will be the classname of the implementation that will be used.
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" ] />
@see org.apache.oro.text.regex.Perl5Compiler
@see org.apache.regexp.RE
@see java.util.regex.Pattern
@see org.apache.tools.ant.util.regexp.Regexp
@ant.datatype name="regexp"