Move unsafe regexp to a constant.