Page 1 of 1
15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 00:05
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.
Re: Functionality Downgrade
Posted: 18 Sep 2015 01:26
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
Re: Functionality Downgrade
Posted: 18 Sep 2015 01:34
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.
Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 01:40
by xman
It most likely is. After all, I was the one, who suggested the change

. See the thread I linked to.
Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 01:52
by armsys
xman wrote:It most likely is. After all, I was the one, who suggested the change

. 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.
Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 01:56
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.
Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 02:08
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.

Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 15:34
by armsys
Not sure why the beta v15.70.0124 log doesn't mention anything about multi-line support of regex search!!

Re: 15.70.0123 Regex Functionality Downgrade
Posted: 18 Sep 2015 21:49
by admin
Coming...
Re: 15.70.0123 Regex Functionality Downgrade
Posted: 19 Sep 2015 00:03
by armsys
Thanks Don.
