A simple test follows:
Hello, world!
Path is m:\Work\cvs\fm-classic\freemarker, path1 is m:/Work/cvs/fm-classic/freemarker
Path2 is fm-classic, first match is classic
m:Path4 is m:/Work/cvs/fm-classic/freemarker
Path5 is m:\work\cvs\fm-classic\freemarker
Path6 is m:\work\cvs\fm-clasic\fremarker