I have a list of strings like:
- Missing image 09
- Missing image 08; P012V004-0061-01 crop again
- P012CR0409F1-1-04, P012CR0409F1-1-05 crop again
- P012CR0602F1-2-01 crop again
Right now my regex expression for isolating image codes that need cropping looks like
([\w\d-]+)(?=.+crop again), which works but returns "Missing", "image" and "08" in the mixed cases. How can I exclude that from the results? I'm guessing lookahead/behind again but can't get it to work. A bonus would be to return the missing images in another group since I'll need them too.
Many thanks,