Useful Regular Expressions

Replace all occurences of Dimension table references with something slightly different: change the name part from SKEY to FKEY

query-replace-regexp "D_\\(.*\\)_SKEY" "D_\\1_FKEY" nil 
  • get rid of [Group 4] ... -numbers in image names e.g. rename [Group 5]-G3S_4899_G3S_4909-11 images-7.jpg to G3S? _4899_G3S_4909.jpg
\[(.*)\]-(.*)-(.* images.*)\.(.*)    -->   \2.\4

Other Stuff

see also http://www.glotzfisch.de/category/programming/regexp/
Topic revision: r2 - 06 Aug 2011 - 11:39:40
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback - Disclaimer - Impressum