[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HowTo: directory-files and friends and case-insensitive match
From: |
raman |
Subject: |
Re: HowTo: directory-files and friends and case-insensitive match |
Date: |
Sun, 07 Feb 2016 11:53:06 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) |
John Wiegley <address@hidden> writes:
As I said, I've implemented myself a solution and moved on. That said, I
do not entirely buy Eli's "this is a large problem that needs to be
solved first" argument -- if that were the case, variables like
completion-ignore-case and read-file-name-completion-ignore-case would
not exist either -- but I digress ...>>>>>> raman <address@hidden> writes:
>
>> I'm specifically trying to match file extensions in a case insensitive
>> manner in this instance, so yes a somewhat more confined problem. Given the
>> complexity I'll just go ahead and construct the regexp to match lower and
>> upper case.
>
> To make any variation on .jpeg:
>
> (directory-files DIR t "\\.[Jj][Pp][Ee]?[Gg]\\'")
>
> You could write a helper function to "case insensitize" regexps, if one
> doesn't already exist somewhere.
--
- HowTo: directory-files and friends and case-insensitive match, raman, 2016/02/05
- Re: HowTo: directory-files and friends and case-insensitive match, Marcin Borkowski, 2016/02/06
- Re: HowTo: directory-files and friends and case-insensitive match, Eli Zaretskii, 2016/02/06
- Regexp matching (was: HowTo: directory-files and friends and case-insensitive match), Stefan Monnier, 2016/02/08
- Re: Regexp matching, John Wiegley, 2016/02/08
- Re: Regexp matching, Paul Eggert, 2016/02/08
- Re: Regexp matching, John Wiegley, 2016/02/11