Modification to partial regex