`var` -> `const` to prevent overloading these vaiables by mistake.
Also you might add `Re` suffix to regexp variables to make them a bit more explicit.