Updated regex so that it's more flexible.  Now the leading path is optional.