Fixed regular expressions, added variables (version 0).