How to achieve this replacement?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
terrypin
Posts: 174
Joined: Wed Jul 11, 2007 7:50 am

How to achieve this replacement?

Post by terrypin »

I'd appreciate help on replacing lines like these

..\Docs\My Music\Brahms\100 Popular Classics - Volume 1\Brahms - Waltz in A Flat Major.mp3
..\Docs\My Music\Composer\Subfolder\Subfolder2\Brahms - Wiegenlied (Cradle song Lullaby) Op.49 No.4

with this result please;

Brahms - Waltz in A Flat Major.mp3
Brahms - Wiegenlied (Cradle song Lullaby) Op.49 No.4

IOW, I just want to see the string after the last '\'.


--
Terry, East Grinstead, UK
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: .*\\
Replace with: [nothing]
terrypin
Posts: 174
Joined: Wed Jul 11, 2007 7:50 am

Post by terrypin »

Thanks! You should have seen some of my highly complicated attempts. So blindingly simple now you've shown me, :)

--
Terry, East Grinstead, UK
Post Reply