ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# F.4 FirstMatchMapper This mapper supports an arbitrary number of nested mappers and returns the results of the first mapper that matches. This is different from composite mapper which collects the results of all matching children. F.4.1 Examples ``` <mapper type="firstmatch"> <mapper type="glob" from="*.txt" to="*.bak"/> <mapper type="glob" from="*.php" to="*.php"/> </mapper> ``` Applying the mapper, you will get the following results from the following filenames: Table F.4:聽Result of mapping FromTo`foo/bar/A.txt``foo/bar/A.bak``foo/bar/A.php``foo/bar/A.php`