Fixed #20784 -- RegexValidator should accept a new parameter to perform reversed validation.

Rework of PR #1387 as required.