added regex sanitization