It SHOULD match, ie:
I read his post as this is the pat:
^/h/d/(.*)
And this is what he's trying to match (he's not great at asking questions, sorry box):
/h/d/blah/blah/foo_bar
In that case, it SHOULD, except, I'm not sure of the use capturing parenthesis on this regexp (should work fine in perl, I'd need to read up on the web server side), and if not needed, I'd drop them.
Also, no anchoring trailing $ should be required. The ".*" should match everything up to the end of the string.