In my inexhaustive struggle for happy customers I decided to add Regular Expressions (aka RegExp) as an additional way to define search patterns in Find Files.
In order to keep the interface as light as possible, and also to avoid the necessity of having two separate pattern histories (one for the "normal" pattern syntax, and another one for RegExp -- the two syntaxes will not be mixable), I generated the following idea: RegExp patterns will simply be prefixed by ">".
Examples:
cat & dog will be automatically treated as normal pattern.
>(\w{12}) will be automatically treated as RegExp pattern (excluding the ">" of course).
I think it's cool. Any objections?
Donald
Find Files using Regular Expressions
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
Gandolf
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Exactly, that was the idea! And also: just checking a checkbox does not translate a search term between the two pattern syntaxes, so you will have to type new stuff anyway. So, it's much easier to start a pattern with ">" to mark it as RegExp. In the combobox dropdown those items will be easily recognizable, too.Gandolf wrote:I assume since you want to keep the interface as light as possible then you don't want to have a checkbox for RegExp.
Since everybody likes it, it's gonna happen!
-
admin
- Site Admin
- Posts: 66075
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
XYplorer Beta Club