polish regex utils