RegExp validation: add permissions check