多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 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. NameTypeDescriptionDefaultRequired`handledirsep``String`If 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`casesensitive``Boolean`If 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 FromTo`test.txt`ignore, `test.txt``./foo/bar/test.conf.xml``./foo/bar/test.php``someconf.conf.xml``someconf.php`