In List Query -> None Case Sensitive?
Ian Kelly
ian.g.kelly at gmail.com
Thu Mar 31 17:51:40 EDT 2011
On Thu, Mar 31, 2011 at 3:14 PM, Wehe, Marco <Marco.Wehe at bskyb.com> wrote:
> Hi,
>
>
>
> I am doing a search through a list of files but the text the casing doesn't
> match. My list is all upper case but the real files are all different. Is
> there a smooth way of searching through the list without going full on
> regular expressions?
>
>
if iFile.upper() in media:
# do stuff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110331/48d8809a/attachment-0001.html>
More information about the Python-list
mailing list