Hello, I’m writing a larger script, but one of the pieces I need is to split the file name into 2 parts:
This File would need split into 2 parts, the first part being the saved to like:
$date = “06-12-07”
$vendor = “Vendor Name”
06-12-07 Vendor Name.pdf
And to complicate things, sometimes the file name would be just like
Without the year information, which is ok. I’m not sure exactly how to split it up, I cant use split as the filename can have multiple spaces in it.
Any help would be greatly appreciated.