Regular expression script
Posted: 13 May 2012 19:07
I need a script to rename a section of 3 digits enclosed by dots (say .234.) into something like this ".X12Y34." (letters and digits are examples). Using this script line, I can insert the "X1" part, but struggling with the "Y" since it would need adding \w\d as the string would now be 1 letter and 4 digit long.
Any help please? Cheers! 
Code: Select all
rename r , '\.(\d\d\d)\. > .X1$1.' ;