Added multiple spaces for typos, and whitespaced for readability.
Reusable pattern applied.
Moved into Patterns and broke down further.
Used named captures for clarity.
Formatting the code.
Merge branch 'better-regex' into develop