Handle attributes and variables

My extraction regex may not be the most robust so watch out! Also updated to compare separate src/destination for each language.