Compare files names only, without extension and prefix

Here you can discuss any topic concerning Far macro commands.
KlepetoX
Posts: 103
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic

Compare files names only, without extension and prefix

Post by KlepetoX » Sat 02 May, 2015 10:29

Latest post of the previous page:

I am back with this macro. How to ignore text between brackets? Something like this:

04 My Room (Waiting For Wonderland)

should be the same as

02 My Room

Shmuel
Posts: 5234
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 152 times

Compare files names only, without extension and prefix

Post by Shmuel » Sat 02 May, 2015 13:42

KlepetoX wrote: How to ignore text between brackets?
Name:gsub("%[.-%]", "")

KlepetoX
Posts: 103
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic

Compare files names only, without extension and prefix

Post by KlepetoX » Sun 03 May, 2015 06:09

It works well, thank you...

Post Reply

Return to “Macro Commands Discussions”