15.70.0123 Regex Functionality Downgrade

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

15.70.0123 Regex Functionality Downgrade

Post by armsys »

Referring to Beta v15.70.0123 - 2015-09-17 21:30
* Find Files | Contents: Now mode "RegExp" will work in "single line mode".
That means a pattern like ^\xFF\xD8 will now match only the beginning of
the file, not the beginning of any line in the file.
Why could the more useful "multi-line" mode be turned off?
In any case, XY would scan only the first 1K to 32K of a file. The small size won't impact the search performance.
Last edited by armsys on 18 Sep 2015 01:30, edited 1 time in total.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: Functionality Downgrade

Post by xman »

As I understand it, this applies only to Binary mode. Text and "Text and Binary" modes should still use multi-line mode.
In a binary file, newline is meaningless and is not any less or more significant than any other random byte.

You might be interested in this thread:
http://www.xyplorer.com/xyfc/viewtopic.php?f=2&t=14704

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

Re: Functionality Downgrade

Post by armsys »

xman wrote:As I understand it, this applies only to Binary mode. Text and "Text and Binary" modes should still use multi-line mode.
In a binary file, newline is meaningless and is not any less or more significant than any other random byte.
Thank Xman for amplifying the clarity. Hope it's also Don's intent, namely, single-line mode being applied to binary files ONLY.
Don's original beta log doesn't hint such nuances per your insight.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: 15.70.0123 Regex Functionality Downgrade

Post by xman »

It most likely is. After all, I was the one, who suggested the change :twisted:. See the thread I linked to.

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

Re: 15.70.0123 Regex Functionality Downgrade

Post by armsys »

xman wrote:It most likely is. After all, I was the one, who suggested the change :twisted:. See the thread I linked to.
After eyeballing several times the thread initiated by you, it makes more sense to me.
Hope Don hasn't killed regex's multi-line mode for text files search.
Thanks xman.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: 15.70.0123 Regex Functionality Downgrade

Post by xman »

I tested it now and it seems that multi-line doesn't work in any of the three modes. But it was probably an oversight and will be fixed.

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

Re: 15.70.0123 Regex Functionality Downgrade

Post by armsys »

xman wrote:I tested it now and it seems that multi-line doesn't work in any of the three modes. But it was probably an oversight and will be fixed.
Thanks for taking time to test the regex's multi-line mode for text files.
We'll keep Don very busy lately. :ghost: :oops:

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

Re: 15.70.0123 Regex Functionality Downgrade

Post by armsys »

Not sure why the beta v15.70.0124 log doesn't mention anything about multi-line support of regex search!! :oops: :blackstorm:

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

Re: 15.70.0123 Regex Functionality Downgrade

Post by admin »

Coming...

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

Re: 15.70.0123 Regex Functionality Downgrade

Post by armsys »

Thanks Don. :appl: :cup:

Post Reply