partial regexp matching