Find Files using Regular Expressions

Features wanted...
Post Reply
admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Find Files using Regular Expressions

Post by admin »

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

Gandolf

Post by Gandolf »

Looks cool to me!! I cannot see any problems since ">" is not a valid character in filenames. I assume since you want to keep the interface as light as possible then you don't want to have a checkbox for RegExp.

Leopoldus
Posts: 237
Joined: 24 Jun 2004 10:58

Post by Leopoldus »

Very nice idea!

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

Post by admin »

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.
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.

Since everybody likes it, it's gonna happen! :D

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

Post by admin »

... and it happened! See new BETA... 8)

Post Reply