The <containsregexp>
tag selects the files whose contents
contain a match to the regular expression specified by the expression attribute.
<fileset dir="${src}" includes="*.txt"> <containsregexp expression="[4-6]\.[0-9]"/> </fileset>
Table 202. Attributes for the <containsregexp>
selector
Name | Description | Default | Required |
---|---|---|---|
expression |
Specifies the regular expression that must match true in every file. | n/a | Yes |
casesensitive |
Perform a case sensitive match. | true |
No |