AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# 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`