Category regex libraries security features considerations