G.7 Containsregexp
Prev | Appendix G. Core selectors | Next

## G.7 Containsregexp

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.7: 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

Prev | Up | Next
G.6 Present | Home | G.8 Size