In Linux, /home/chester and /home//////chester are the same. Isn't it the same in Windoze?

The short answer of course is just use Perl, since parsing text is what Perl was designed for in the first place.