Answers for "python check if a string is between two string"

6

get text between two strings python

# You can do this with Reg Exp
import re

s = 'asdf=5;iwantthis123jasd'
result = re.search('asdf=5;(.*)123jasd', s)
print(result.group(1))
Posted by: Guest on June-09-2020
0

How to check if two strings are same in Python

# Program to check the email and re-enterd email is same or different
email= "[email protected]"
confirmemail="[email protected]"

if(email.lower() == confirmemail.lower()):
    print("Email Address are same")
else:
    print("Email Address are not same")
Posted by: Guest on November-29-2021

Code answers related to "python check if a string is between two string"

Python Answers by Framework

Browse Popular Code Answers by Language