Support regexp which matches empty string