extract URL path first, then filename

Extract filename with Regexp

to address Issue #4