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 G.8: 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 |
multiline | Perform a multi line match. | false | No |