Clone of posregex