Topic: Share your favorites
If you have found useful expressions
maybe you would like to share them with others?
Remove all digits from base name:
%b("0","")("1","")("2","")("3","")("4","")("5","")("6","")("7","")("8","")("9","").%e
Or better (means shorter) use regular expression:
%b(s/\d//g).%e
Note: \d stand for the group of all digits, see http://boost.org/libs/regex/doc/syntax_perl.html
See the Siren help too:
- Modification by regular expression
The usage is near of the standard:
"(s/exp/fmt/mod)"
exp : regular expression
fmt : replacement format
mod : modifiers
g to treat all occurrences
i for a case insensitive search
-------------------------------------------------------------------------
Exchange all digits in base name with space:
%b(s/\d/ /g).%e
Exchange all digits in base name with underscore:
%b(s/\d/_/g).%e
.