Removing permission regex