Compare files names only, without extension and prefix

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

Compare files names only, without extension and prefix

Postby 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: 4906
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 10 times
Been thanked: 118 times

Compare files names only, without extension and prefix

Postby Shmuel » Sat 02 May, 2015 13:42

KlepetoX wrote:Source of the post How to ignore text between brackets?

Name:gsub("%[.-%]", "")

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

Compare files names only, without extension and prefix

Postby KlepetoX » Sun 03 May, 2015 06:09

It works well, thank you...


Return to “Macro Commands Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest