ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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`