searching strings

D

Daniel Dalton

Hi,

I'm writing a program where I search a variable (path), and see if it
contains the whole string of variable name
so:
if name in path:
....
else:
....

One question about this, how can I make it do exactly what it's doing
now, except ignore case? eg. if I do this:
i="A"
j="ab"
i in j
should return true... How do I do this?

Thanks,

Daniel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top