zsh-users
 help / color / mirror / code / Atom feed
* case insensitive string match
@ 2013-01-03 10:33 rahul
  2013-01-03 12:08 ` Peter Stephenson
       [not found] ` <87zk0qzg1u.fsf@ft.bewatermyfriend.org>
  0 siblings, 2 replies; 4+ messages in thread
From: rahul @ 2013-01-03 10:33 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

I've been using this for doing some filtering from an array:

                matched=(${(M)array:#*$patt*})

Now I need to have an option of case insensitive search. Looked through the
user's guide and other sources but I don't see a flag to ignore case. Is
there a way without changing this to use grep.

I also dont suppose approximate matching can be used here (that's only for
filename globbing, right?)

-- 
 rahul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-03 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-03 10:33 case insensitive string match rahul
2013-01-03 12:08 ` Peter Stephenson
     [not found] ` <87zk0qzg1u.fsf@ft.bewatermyfriend.org>
     [not found]   ` <CACQNQ9P6c=hhD=X-Ur_mx+0LOknpezHsLwfz0UB9nK2hUQbpEw@mail.gmail.com>
2013-01-03 12:10     ` Frank Terbeck
     [not found]       ` <CACQNQ9MUbO0n9kuKGiW5DSYrL12-jaCPvkJiRAPNa_=MNg=HNQ@mail.gmail.com>
2013-01-03 12:43         ` Frank Terbeck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).