pathRegexp() function added in Utils module