If you don’t want to use str.lower()
, you can use a regular expression:
import re
if re.search('mandy', 'Mandy Pande', re.IGNORECASE):
# Is True
More Related Contents:
- What is Perl's equivalent of Python's time.time()? [closed]
- how to print n words of context while searching text [closed]
- Iterating through a CSV and pulling out the last line of the day for each element
- Convert perl regex to python [closed]
- Randomly generate 4 or 5 digit Unique Codes in Subsequent Runs of the Script
- How can I remove text within parentheses with a regex?
- How to efficiently calculate a running standard deviation
- Scraping dynamic content in a website [duplicate]
- What are the differences between Perl, Python, AWK and sed? [closed]
- Extracting data from HTML table
- Character Translation using Python (like the tr command)
- Real-time intercepting of stdout from another process in Python
- Why don’t I get any syntax errors when I execute my Python script with Perl?
- Regexp finding longest common prefix of two strings
- Memory error while using pip install Matplotlib
- Discrete legend in seaborn heatmap plot
- Fit mixture of two gaussian/normal distributions to a histogram from one set of data, python
- Python Attribute Error: type object has no attribute
- Clean way to convert quarterly periods to datetime in pandas
- Combine Pandas data frame column values into new column
- Mutable and Immutable Strings in python
- Accessing attribute from parent class inside child class
- How do I split a custom dataset into training and test datasets?
- How to close a thread from within?
- Is it possible to add a string as a legend item
- Pycharm: “unresolved reference” error on the IDE when opening a working project
- Converting string to tuple without splitting characters
- How do I get the current depth of the Python interpreter stack?
- Override existing Django Template Tags
- Search File And Find Exact Match And Print Line?