Nick wrote:
> I was thinking that, but I didn't know how to do it right. I'm not that
> familiar with the perl regex, what is this doing to split it? My concern
> was that the filename might contain a '/' or a '\' char in it and I didn't
> know how to reliably split it. So I thought it was good enough that
> swish-e did it for me if the title was blank.
>
> But as long as that is sure to work reliabily, then your way would be best
> I think.
use File::Spec::splitpath() it's portable across OS'es, comes with Perl,
and much better than trying to figure this out on your with a regex.
--
Michael Peters
Developer
Plus Three, LP
Received on Tue May 10 17:50:33 2005