new script with regex