F.10 RegexpMapper

The RegexpMapper changes filenames according to a pattern defined by a regular expression. This is the most powerful mapper and you should be able to use it for every possible application.

Table F.10:  The regexp mapper can take the following extra attributes.

handledirsepStringIf this is specified, the mapper will ignore the difference between the normal directory separator characters - \ and /. This attribute is useful for cross-platform build files.falseNo
casesensitiveBooleanIf this is false, the mapper will ignore case when matching the glob pattern.trueNo

F.10.1 Examples

<mapper type="regexp" from="^(.*)\.conf\.xml" to="\1.php"/>

The mapper as above will do the following mappings:

Table F.11: Result of mapping

test.txtignore, test.txt