Page 1 of 1

Filtering filenames that START WITH something?

PostPosted: Mon Oct 27, 2014 1:12 pm
by mountainsoft
I want to filter filenames that begin with text like "ng" (such as ng.sample, or ng-test) but don't want to filter filter names that have "ng" in them (such as "working" or "bang" or "sample.ng").

How would I do this?

Re: Filtering filenames that START WITH something?

PostPosted: Mon Oct 27, 2014 2:16 pm
by Quade
"^ng" should to it.

"^" means "tied to beginning of the line".

This works in the filename filters. It won't work so well in the subject filters because ^ would be the beginning of the subject, not the filename.

If you want to use something like that in the subject filters, you'd have to key on something other than the beginning of the line. For example if all filenames are quoted (most of them are)

"["]ng.*["]"

Might do it. Meaning match anything that starts with a quote followed by ng...any characters, then another quote.

You can test the subject ones in the "find" box. Don't include the outer quotes.

Re: Filtering filenames that START WITH something?

PostPosted: Mon Oct 27, 2014 2:26 pm
by mountainsoft
My bad, it was the subject I was wanting to filter. Your second example seems to be working fine. Thanks!