ndn-regexp: Adding a helper that emulates re.match behavior

Change-Id: I7c367021af89a505c47cc56e397caaef4ef9790b