Example: 'images/0-31604-01079-9_label_small.jpg'
In this case we're looking for the string 'label' between the underscore delimiters (not including the delimiters).
This would be our regex /(?<=_)+[A-Za-z]+(?=_)/
- Look for the preceeding delimiter, underscore (?<=_)
- Plus +
- All alpha characters upper and lower case [A-Za-z]
- Plus +
- Look for the ending delimiter, underscore (?=_)