Incorrect regular expression in logs search page are correctly handled

Otherwise users get a unmanaged mysql error in the screen and think there is a system error.

Implemented adding the new method to EBox::Validate::checkRegex