Rewrote and added tests for check_operator_regex.
Merge pull request #30 from arxanas/coverage

Rewrote and added tests for check_operator_regex.