Redo re.compile() implementation wihout json

Also fix a missing `self` in identifyHash()