F.9 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.

F.9.1 Examples

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

The mapper as above will do the following mappings:

Table F.8: Result of mapping

FromTo
test.txtignore, test.txt
./foo/bar/test.conf.xml./foo/bar/test.php
someconf.conf.xmlsomeconf.php