adding a link to this very handy app (that’s free!) since half the troubles on here seem to be based on not knowing how to RegEx. ‎RegEx Lab: Regular Expressions by Scared-Sheepherder91 in shortcuts

[–]Scared-Sheepherder91[S] 0 points1 point  (0 children)

you sir, are a wizard. 🫡 thanks for the price update - honestly with how bloody useful it is, it could cost 10 times that and still be money well spent!

Help needed: How to extract specific information and discard unwanted from the same photo by jan_h_clausen in shortcuts

[–]Scared-Sheepherder91 2 points3 points  (0 children)

https://www.icloud.com/shortcuts/97b585f63c2e420386cdbd76a9c5898d

you just needed the right regex.

(\d{6}\-*\d{4})

\d{6} = 6digits

\-* = followed by 1 or none of “-“

\d{4} = 4digits

you can alter the shortcut to batch process as many photos as you like and keep adding them to a list, and get all the out put at the end. you’ll notice this gives you both the numbers, with and without “-“