Copying a part of a filename

hi, i`m searching a way to copy part of a filename of certain files. For example I always download images from deviantart and in that site the use a sistem of naming the images this way: nameofimage_by_nameofartist.jpg, then I like to make somo sort of button that copy only the name of the artist and then with that create a folder and select all the files of that artist and copy them to that folder. can somebody help me in creating this button, thanks.

Old name: (.+)by(.+)(.[^.]+)
New name: \2\\1\3
Type: Regular Expressions


wow, that was a fast answer!!!!, :grin:, one question, how can I set a variable (@set) that contents the "nameofartist"?. thanks

You can't using @set but you could using a rename script. What do you want to do with the name?

select all the images of that specific artist, something like this; select *.*nameofartist.jpg

Presumably instead of moving them into a folder named after the artist? (Else they would no longer be there to select.)

What do you want to do after you've selected them? i.e. What are you actually trying to do with the files?