Hi, I have a situation and not sure the best most efficient way to parse a file name. I have a directory of files i need to process and i need to collect information from each file name before i process each file.
Below are two examples of file names:
sec_abcdef_lg6789_david_ted
ext_jurtyu_pmd998_9259_wendy H_ted
The file names have the following naming convention:
Each file name contains the follow information:
section_part_loginfo_name_ted
section and part are the first two pieces of information
name and ted are the last two pieces of information
loginfo is after the "part" but before the "name"
for the examples above:
loginfo: lg6789
loginfo: pms998_9259
Note: i would have posted a file but i was not sure how to post a file.
Below are two examples of file names:
sec_abcdef_lg6789_david_ted
ext_jurtyu_pmd998_9259_wendy H_ted
The file names have the following naming convention:
Each file name contains the follow information:
section_part_loginfo_name_ted
section and part are the first two pieces of information
name and ted are the last two pieces of information
loginfo is after the "part" but before the "name"
for the examples above:
loginfo: lg6789
loginfo: pms998_9259
Note: i would have posted a file but i was not sure how to post a file.