Blocks input depending provided regexp