I have a text file which is a listing of directories that I would like to turn into an array. I figured space delimiting will work but the number of spaces varies between each item and the spaces in the directory name would be a problem. I would like to parse the text into a PHP array.
The text file has a very rigid structure that looks like this:
04/17/2013 09:49 PM <DIR> This is directory 1 (1994)
03/11/2013 06:48 PM <DIR> Director 2 (1951)
04/15/2013 08:34 PM <DIR> This is going to be number 3 (2000)
08/17/2012 09:50 PM <DIR> Four (1998)
10/17/2011 05:12 PM <DIR> And lastly 5 (1986)
I only need to keep the folder date (not time), the complete name of the directory (as one entry) and the year in parenthesis. Thanks in advance!