Replace fat arrows in a HAML file: Find: :(\w+?)\s\=>\s(.+?)(\,|\}) Replace: $1: $2$3 Remove comments in a HAML file: Find: ^\s+?\/.+?\n Replace with empty string.