regexp validation improved, incorrect syntax like 'a|+b' will be
notified