Regex checkers implemented.

Slight changes in error highlighter.
Regex checker assummes next logic: if line matches with first regex,
this line must be matched by second regex.
For example, we want to restrict \begin usage to be written on
separate line: in this case first regex looks like "\\begin" and
second -- "^\\begin{[^}]+}$" (approx).