I need to grab two chunks of a string to obtain the values. I've wrapped them in curly braces for demo purposes. I assume I need to use a bit of regex for this? I'm not asking for someone to spoonfeed me the code, but I'm struggling to figure out how to match more than one part of a string. Once I understand how to do this the world is my oyster.
/path/to/image/{name}-sm{1}.jpg
As you can see, I need to grab {name} and {n} ( 1 in this case ).