My source data has one field. That one field is a file path. There is sub-directory in each file path that uses a serial # for its name. I am trying to isolate that serial #. Nine times out of ten, that serial # is the first child in a file's path. But, nothing is ever that easy. Sometimes, it is the 3rd or 4th child in the path.
I tried using the Text to Columns to parse the serial #. It easily isolates the serial # for those entries where it appears as the first child under the file path. But, how do I extract it for when it is not?
Here is an example of the source data...
The serial # is always 13-digits or 16 characters with the dashes.
How do I extract just the serial #?
| Path | What I Want | | |
| AIL\5996-01-476-1136 | 5996-01-476-1136 | | |
| AIL\5996-01-502-1417 | 5996-01-502-1417 | | |
| Another Customer\Their Book 1\1095-00-866-2398 | 1095-00-866-2398 | | |
| AIL\5996-56-582-4657 | 5996-56-582-4657 | | |
| Another\Yada\Their Yada Yada\5487-98-567-5641 | 5487-98-567-5641 | | |