I did a search and couldn't find my question previously discussed, so I hope I'm not repeating a previous discussion. If I am, I apologize and just point me to it.
I would like to replace some or all the non-text delimiters in the path to each file in a PM contact sheet and replace them with semi-colons so that the words in the path can be automatically be used as keywords. For example:
c:\my_pix\toms\2013_09_11\autumn-trees\
should become
c; my; pix; toms; 2013; 09; 11; autumn; trees;
Even better would be if I could exclude certain sub-strings from the parsing, for example, "c:", "my_pix", "nef", etc. should all go to nulls or just a single space character.
It seems like code replacement might be made to work, but I can't figure out how to do this.
Another possibility would be to somehow pipe Photo Mechanic's {fpth} over to something like Unix's SED or AWK that uses regular expressions and then bring the result back into PM. (ps - I'm doing this in a Windows system, but have numerous unix text utilities available on my system)
Any suggestions would be greatly appreciated.
Thanks in advance,
Tom