Match URI regexp against start and end of string, not line.