Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
input foo, output '[F|f][O|o][O|o]'?
- X-seq: zsh-users 17840
- From: "TJ Luoma" <luomat@xxxxxxxxx>
- To: "Zsh-Users List" <zsh-users@xxxxxxx>
- Subject: input foo, output '[F|f][O|o][O|o]'?
- Date: Mon, 01 Jul 2013 13:59:38 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:date:message-id :mime-version:content-type; s=smtpout; bh=upaEXal7Ayeg/5o0ultMY8 CzbeY=; b=uyUc4tUnbrcS9oEys4TWVfT5MZyeuIkeARBgxOvLh1SJzm17tTXhN9 f5aXH7SSptfNvQWRWZtlG9MjEVn6AX6sNhyQ3mwgB+o7eZWcdRz4ECGT2jfuLwYN Prdfls2vrz+X6mKEh75iuO6yd6QndNO3Gjo6NEPudVWKaTLYL6FdA=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author