zsh-users
 help / color / mirror / code / Atom feed
* input foo, output '[F|f][O|o][O|o]'?
@ 2013-07-01 17:59 TJ Luoma
  2013-07-01 18:44 ` ZyX
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: TJ Luoma @ 2013-07-01 17:59 UTC (permalink / raw)
  To: Zsh-Users List


Before I reinvent the wheel, I thought I'd ask if someone already had 
(or knew of) a way to take a string of characters and output a 'case 
insensitive' regex version.

For example, if I input 'CrashPlan' I'd want to get out 
[C|c][R|r][A|a][S|s][H|h][P|p][L|l][A|a][N|n]

(Input will usually be ASCII letters, with an occasional number and 
perhaps the occasional '-' or '_' but doesn't need to handle anything 
more complex than that.)

I tried Google but found it pretty impossible to make a good query for 
something like this.

TjL


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

end of thread, other threads:[~2013-07-02 23:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-01 17:59 input foo, output '[F|f][O|o][O|o]'? TJ Luoma
2013-07-01 18:44 ` ZyX
2013-07-02  0:58   ` TJ Luoma
2013-07-02  1:30     ` Lawrence Velázquez
2013-07-02  1:53     ` Benjamin R. Haskell
2013-07-02  4:24       ` TJ Luoma
2013-07-02  3:51     ` ZyX
2013-07-02  4:00       ` ZyX
2013-07-02 23:24         ` Phil Pennock
2013-07-01 19:37 ` Phil Pennock
2013-07-02  0:24   ` TJ Luoma
2013-07-01 23:51 ` Alex Satrapa
2013-07-02  0:38   ` Kurtis Rader
2013-07-02  1:11     ` TJ Luoma

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