Rewrite rule for URI with path parameter

Hi,
How to create rewrite rule for regex match of
/my-service/requests/.*/history to rewrite
/requests/.*/history
Thanks