Good call on the regex approach. I tweaked it slightly since the path doesn't actually begin with /id, and to capture the case when it's just the id followed by .html