No, not the quickest at all but he gets there!  Or will do if you include the following above the existing do_rewrite function clause:

do_rewrite(Path, []) ->
    Path;

Without this, paths that don't match aren't passed through correctly.

Regards

Andrew

On Wed, Jul 8, 2009 at 10:58 AM, Claes Wikstrom <klacke@tail-f.com> wrote:
andrew mmc wrote:
Hello everyone,

I just wrote the below rewrite mod.  

Nice work - not the fastest guy in town - but handy.

/klacke