!>\x61

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

!>\x61

Post by armsys »

Referring to v15.70.0120 log (Posts: 36626), it states:

Code: Select all

!>\x61		is parsed as      NOT RegExp(\x61)
Indeed, it lists all items containing no "d". However, XY Find Files remains under the "Standard" mode and behaves more like a regex mode. The Bible doesn't mention XY can interpret the "\x" hex.
Question:
Why does XY not switch to regex mode by the presence of ">" in the pattern?
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: !>\x61

Post by admin »

">" is an inline RegExp marker that overwrites the setting in the Mode field.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: !>\x61

Post by armsys »

admin wrote:">" is an inline RegExp marker that overwrites the setting in the Mode field.
But in this case, the RegExp marker, namely, ">", is preceded by "!". Does the ">" still take effect?
I would enter ">!>\x61" in the Name field for clarity.

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: !>\x61

Post by admin »

armsys wrote:
admin wrote:">" is an inline RegExp marker that overwrites the setting in the Mode field.
But in this case, the RegExp marker, namely, ">", is preceded by "!". Does the ">" still take effect?
I would enter ">!>\x61" in the Name field for clarity.
The ">" still takes effect. Everything after ">" should be RegExp. So "!" must be before ">".

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: !>\x61

Post by armsys »

admin wrote:The ">" still takes effect. Everything after ">" should be RegExp. So "!" must be before ">".
Got it. Thanks you for clearing up all ambiguities.
In particular, the key concept here is:
admin wrote:Everything after ">" should be RegExp.
It should be added into the Bible.

admin
Site Admin
Posts: 66631
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: !>\x61

Post by admin »

armsys wrote:It should be added into the Bible.
Done. :)

Post Reply