Q. You have a large file where you want to replace a lot of variable names. Fore example
There are 500 entries. You want to remove the last name, how will you you do?
A. I will use regular expressions. Something like this
Find : [space].+
Replace: [empty string]
Q. In question 1 above, lets say you want to insert a dash(-) between first and last name, can yo do it?
A. Yes. It depends one different editors. In textmate I can use
Replace: – $0
$0 contains the whole string that was found using regular expression.