[TC 10 b3] Help of "regular expression": Missing "u"

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

[TC 10 b3] Help of "regular expression": Missing "u"

Post by *sqa_wizard »

At help files the explanation of new added "look behind" option is missing an "u"
German help wrote:Positiver Blick nach hinten: Sucht ein 'u' mit ein 'q' davor:
(?<=q)u ... findet das 'u' in "Qual" aber nicht in "Iraq"
English help wrote:Positive look behind: find an 'u' with a 'q' in front of it:
(?<=q)u ... u matches the 'u' in "question" but not in "Iraq"
#5767 Personal license
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 10 b3] Help of "regular expression": Missing "u"

Post by *Dalai »

Let's make it correct German while we're at it:
German help wrote:Positiver Blick nach hinten: Sucht ein 'u' mit einem 'q' davor:
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b3] Help of "regular expression": Missing "u"

Post by *ghisler(Author) »

Thanks, the "u" just went to the wrong column, "u matches" should not have an "u".

Btw, it would be nice if someone fluent with regular expressions could test the updated library.
Here is a list of all the supported functions:
https://regex.sorokin.engineer/en/latest/regular_expressions.html

As explained in my help, one of the options (Atomic grouping) is not supported by 'Everything', so it will not work in the search when the 'Everything' option is checked. But it will work without it, or in Lister's search.
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Re: [TC 10 b3] Help of "regular expression": Missing "u"

Post by *fleggy »

Well, first I didn't read the full documentation and I tried straight away my favorite regexp for searching HTML tag pair <XXX></XXX>:

(?s)(?P<MAIN><(?P<TAG>XXX)\b[^>]*+(?:(?<=/)>|(?<!/)>(?>(?:(?!<(?P=TAG)\b)(?!</(?P=TAG)\b).)++|(?&MAIN))*+</(?P=TAG)>))(?<!/>)

but unfortunately:
- (?s) is not supported so no multiline matches possible
- lookarounds are supported only at the beginning/end of the pattern so their using is very limited

At least this simple part:
<(?P<TAG>test)\b[^>]*+>.+?</(?P=TAG)>
works but again matches a text only on a single line. I hoped that [^>]* would match tag attributes including line delimiters.

It is nice to see some progress in this regexp library but it still isn't usable for a serious advanced searching. At least not for me.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b3] Help of "regular expression": Missing "u"

Post by *ghisler(Author) »

- (?s) is not supported so no multiline matches possible
That's actually a Total Commander limitation: I'm feeding the text line by line to the RegEx library, otherwise it could get very very slow when a single regular expression would match a multi-GByte file.
- lookarounds are supported only at the beginning/end of the pattern so their using is very limited
This is indeed disappointing for me too. :(
Author of Total Commander
https://www.ghisler.com
fleggy
Junior Member
Junior Member
Posts: 97
Joined: 2011-10-20, 07:00 UTC

Re: [TC 10 b3] Help of "regular expression": Missing "u"

Post by *fleggy »

And could you consider a new option [ ] Multiline RegEx in the search dialogs, please? If Andrey Sorokin removes most of current restrictions in his regexp library then the single line processing will be one of the biggest constraints. Thank you :)
Post Reply