Move regexp to the place where it's used

It makes the code more readable.
Add rubocop & automatically fix some stuff
Improved commands help