>We know that all components are separated by one ore more spaces
>I capture the parts between the spaces into named groups ( see
http://msdn.microsoft.com/en-us/library/az24scfc.aspx under Grouping Constructs )
>
>After the month and the day, you have either a year or a time
>This part of the pattern
>
>((?<Year>\d{4})|(?<Time>\d+:\d+(:\d+)?))
>
looks for 4 digits (year) or a time. The vertical bar is an alternation (or)
>
>The nice thing about using this is that (1) I do not have to count spaces and (2) I can modify the pattern with minimal changes to the code
>
>
>The output for this line
>
>-r-xr-xr-x 1 owner group 4737 Jan 18 13:50 4A17A7B1.txt
>
>is
>
>Month Jan
>Day 18
>Year
>Time 13:50
>Size 4737
>FileName 4A17A7B1.txt
>
>
>and the output for
>
>-r-xr-xr-x 1 owner group 4737 May 5 2011 4A16PBE1.txt
>
>is
>
>Month May
>Day 5
>Year 2011
>Time
>Size 4737
>FileName 4A16PBE1.txt
>
>
>So, you can simply test whether you have a year ( or a time )
Thanks
So, basically, as far as FTP directory listing, is it about the format we can expect or there could other weird formats returned by some FTP servers?