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.
<mapper type="regexp" from="^(.*)\.conf\.xml" to="\1.php"/>
The mapper as above will do the following mappings:
Table F.8: Result of mapping
From | To |
---|
test.txt | ignore, test.txt |
./foo/bar/test.conf.xml | ./foo/bar/test.php |
someconf.conf.xml | someconf.php |