What RegEx will match 'Parenthesis+Space+Dot' ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

What RegEx will match 'Parenthesis+Space+Dot' ?

Post by *sexy69 »

I want to find a file with the space:

Image: http://home.arcor.de/guciu/regex1.jpg
Tu pokazuje, że kod RegEx jest dobry.
https://regex101.com/

and here it does not work.
Image: http://home.arcor.de/guciu/regex1a.jpg
Film (1999).mp4
Film (1999) .mp4
Image: http://home.arcor.de/guciu/regex2.jpg

Where is the mistake?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You are using tc.name field which does contain only name w/o dot and extension. You can switch to custom columns mode with this column to see its contents.

In case of tc.name field you can find trailing spaces using " $" expression (a space before end of string).

Also you can use regex in Search for field (when regex option is enabled), and your expression "\) \." will work there. You can even find such files w/o regex using "* .*" mask (this one must be quoted).
sexy69
Member
Member
Posts: 124
Joined: 2016-06-22, 17:21 UTC

Post by *sexy69 »

regex option is enabled
Image: http://home.arcor.de/guciu/regex3.jpg

(\) \.)
What is the correct code to Total Commander?
thomasBIS
Junior Member
Junior Member
Posts: 2
Joined: 2016-08-22, 16:49 UTC

Post by *thomasBIS »

( |\d\) $)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

sexy69,
Just use your expression:

Code: Select all

(\) \.)
BTW there is no need in outer parentheses for regular expressions, so one mentioned by me works too:

Code: Select all

\) \.
Post Reply