Mea culpa! I meant Template Haskell code :-). Thanks John! On Apr 9, 2007, at 2:02 PM, John Meacham wrote: > sed -ne 's/^ast_\([a-z0-9_A-Z]\+\).*$/("\1",ast_\1)/p' File.hs > > note the two occurances of 'ast_'. -- http://wagerlabs.com/