Regular expression help. I am looking for a string and am looking to find and delete text. That I still do not work.
thisstring = "some text here
more text
findme=words15515.1515
"
a = re.compile(r'^findme=\.*')
a = a.search(thisstring)
I want to find and copy the entire line.
When I print, I do not get a single one. I am looking for help on how to find findme = string and remove the entire string from the string and save the string in a variable that will be used later. Also remove the line from the line.
source
share