Move regex to a constant.
Resolve indentation issues.