Replacing/inserting text string based on filename

A place to try and solve your RegEx problems.
Post Reply
User avatar
Grinderedge

Replacing/inserting text string based on filename

Post by Grinderedge »

First of all thank your for making such an useful tool and providing it for free.

I'm working with cue/bin files that look like this:

FILE " (T-1)].bin" BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00
FILE " (T-2)].bin" BINARY
TRACK 02 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE " (T-3)].bin" BINARY
TRACK 03 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00
FILE " (T-4)].bin" BINARY
TRACK 04 AUDIO
INDEX 00 00:00:00
INDEX 01 00:02:00

I'd like to insert the name of the file between FILE " and (T-. Is that possible with regular expressions? Is there a batch command that could do that job for multiple files?

Thank you in advance for your help
User avatar
DV

Post by DV »

Sorry- no way to use the filename in the replace expression at the minute.
Something to consider for future versions though. Thanks!
Post Reply