8.52a Help file: suggestions, questions

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

8.52a Help file: suggestions, questions

Post by *DrShark »

Page "Dialog box: Configuration - Change button bar":
5. With the command zipfromlist you can create a zip file from a list of files. The command field must contain the zip file name, and the parameters field the name of the list file. The list file must contain a list of files to be packed, one file per line. Now supports the following parameters, put in front of the zip file name: -m move, -o overwrite without asking, -0 .. -9 compression rate, -c0 encrypt (zip20), -c1 AES128, -c2 AES192, -c3 AES256, -c0pass .. -c3pass encrypt with given password
Maybe it worth to add here that zipfromlist also supports -10 parameter for zipx if LzmaAllowed=1?

Page "Find files: General":
Office xml (docx, xlsx, odt etc)+EPUB Searches in Microsoft Office, OpenOffice/LibreOffice and EPUB files, which are just renamed ZIP files containing XML or HTML text. No need to check option "Search archives".
More a question than a suggestion: can we get a full list of formats supported here? Because "office formats" term is not limited to text documents and tables/spreadsheets.

Page "Regular expressions":
Here is a list of the most important meta-characters:
^ Line start
$ Line end
...
For RegEx experts: shouldn't it be "string" here instead of line? Because if I am correct with terminology, the ^$ expression can find a string in a text line.

On page Regular expressions I also have to note that page lead with following text:
Regular expressions consist of normal characters and special characters, so-called meta-characters. The following characters are meta-characters or initial parts of meta-characters:
. \ ( ) [ ] { } ^ $ + * ? (only in character classes: - )
and the Meta-characters section with following text:
^ Line start
$ Line end
. Any character
\w a letter, digit or underscore _
\W the opposite of \w
\d a digit
\D no digit
\s a word separator (space, tab etc)
\S no word separator
\b finds a word boundary (combination of \s and \S)
\B the opposite of \b
are a bit confusing since the different set of meta-characters listed, without the basic explanation or example on difference between "meta-characters or initial parts of meta-characters".
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Re: 8.52a Help file: suggestions, questions

Post by *milo1012 »

DrShark wrote:shouldn't it be "string" here instead of line? Because if I am correct with terminology, the ^$ expression can find a string in a text line.
Yes, under normal circumstances.
But unfortunately TC's engine is limited to single lines, i.e. every line is searched individually.
(see here or here)

I agree that the help file should mention this limitation more clearly.
TC plugins: PCREsearch and RegXtract
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2milo1012
Thanks, that's it. I've heard of it, but now I understand why it makes TC's RegEx to work how it works. So here Total Commander Help is correct in what it says about the beginning and the end of line, since here string = whole line, in context of file content, and full name (including extension part) in context of file/folder names.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply