Re: [请问] Ant Renamer的regexp问题?

楼主: vernc (cralvin)   2017-02-14 19:05:18
23_0023_24.jpg -> 023_023_024.jpg
[email protected]@3.jpg -> [email protected]@003.jpg
<Regexp Expr="(\D*)(\d\.)" Repl="$1\0\0$2"/>
<Regexp Expr="^(\D*)(\d\d\.)" Repl="$1\0$2"/>
<Regexp Expr="^(\D*)0+(\d\d\d\.)" Repl="$1$2"/>
本来是用上面三行,但只能处理单一组数字
想做到如上处理复数的效果
想像那三行要同一个rule,在任何情况下都适用
如上面那二行都是三组数字,想在n组数字下都通用
请问这要怎下?
thx

Links booklink

Contact Us: admin [ a t ] ucptt.com