Have looked through and not found a similar question / answer.
Trying to do similarly to this post (https://exiftool.org/forum/index.php?topic=8456.0) (write exif date/time from filename) but I have a string at the beginning of each file that is variable in content (e.g. a counter) and in length (e.g. sometimes the file has a "tl_" prefix and sometimes something else three characters long).
Is there any syntax to ignore x number of characters as 'noise' and then continue relevant parsing command syntax?
Thanks
Can you give some exact examples? It might be easier just to match the date/time pattern. For example, if you had something like
tl_some1234JunkNumbers893-2016-10-06_17-59-46-morejunk.jpg
then you could use
exiftool "-DateTimeOriginal<${Filename;m/(\d{4}-\d\d-\d\d_\d\d-\d\d-\d\d)/;$_=$1}" tl_some1234JunkNumbers893-2016-10-06_17-59-46-morejunk.jpg
and that will match 4DigitsDash2DigitsDash2DigitsUnderscore etc, etc and remove everything else. The result would work as the significant 14 digits will remain and the separating characters are ignored (see FAQ #5 (https://exiftool.org/faq.html#Q5), paragraph starting "Having said this").
Is your file name date/time format consistent? Post some sample file names, exiftool can process YYYYmmddHHMMSS easily, only if the format follows some pattern. :)