[Krename-users] Special Regular Expression Trouble
Brought to you by:
domseichter,
stonki
From: Sverre M. <sve...@gm...> - 2012-09-22 08:51:09
|
I have some trouble with regular expression with KRename. 1. I need to find a word between two characters, remove it and place it in front of the filename: From '(' to ',' 2. I need to remove text between two characters: From '-' to '(' I have some books in the following format: Title - WriterNames (Publisher, Year).pdf I need to change it to: Publisher - Title (Year).pdf Point two I have managed to do with regular expression if I changed the characters '-' and '(' to word1 and word2 and run with the following regular expression: * \bword1\W+(?:\w+\W+){1,10}word2\b* * * Appreciate any help with this.* * |