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


.

2 (edited by Stefan 2007-04-22 01:27:57)

Re: Share your favorites

Remove all brackets:

%b("(","")(")","")("[","")("]","")("{","")("}","").%e


-----------------------------------------------------------------------------
There is an regex POSIX class to match punctuations, [[:punct:]]
%b(s/[[:punct:]]/ /g).%e

But this class match to much:  ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ .


.



      --
   For more details just download Siren at http://www.scarabee-software.net/en/siren.html and consult the help.
   No installation needed, unzip and run. Siren stores it settings into an ini file.   <Here> you can see some screen shots of Siren.
   Enjoy Siren, the powerfully portable freeware renamer.

Re: Share your favorites

Leetspeak Leet Leetspeek

%lb("L","1")("Z","2")("E","3")("A","4")("S","5")("B","6")("T","7")("X","8")("G","9")("O","0").*



Leet is a written form of slang used primarily on the Internet, but becoming increasingly common in many online video games,
which uses various combinations of alphanumerics to replace proper letters.
http://de.wikipedia.org/wiki/Leetspeak
http://en.wikipedia.org/wiki/Leet