Create Regex From String Python Functions W3schools