Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

case insensitive replace python

>>> import re
>>> insensitive_hippo = re.compile(re.escape('hippo'), re.IGNORECASE)
>>> insensitive_hippo.sub('giraffe', 'I want a hIPpo for my birthday')
'I want a giraffe for my birthday'
Comment

PREVIOUS NEXT
Code Example
Python :: pandas read column in date format 
Python :: add 2 set python 
Python :: How to get the value of an Entry widget in Tkinter? 
Python :: python check if nan 
Python :: install python packages behind proxy 
Python :: frequency spectrum signal python 
Python :: pandas xlsx to dataframe 
Python :: get first line of file python 
Python :: run python file using python code 
Python :: smtplib not sending email 
Python :: Simple way to measure cell execution time in ipython notebook 
Python :: beautifulsoup remove element 
Python :: current date to epoch python 
Python :: sort dict by value 
Python :: boto3 paginate 
Python :: Filter pandas DataFrame by substring criteria 
Python :: move one column value down by one column in pandas 
Python :: set title matplotlib 
Python :: how to write to a netcdf file using xarray 
Python :: vault python client 
Python :: int to list python 
Python :: conda import django 
Python :: compile python to pyc 
Python :: check if camera is being used python 
Python :: python debugger 
Python :: pandas filter length of string 
Python :: replace value pandas df 
Python :: separate path python 
Python :: selenium webdriver manager python 
Python :: python convert a string to a list of words 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =