How do I match any two same words like Mirror mirror the the
How do I match any two same words like \'\'Mirror mirror\'\' \"the the\" \"apple Apple\" but not \"The big apple\" in python Regex
Solution
str1 = \"hema\"
str2 = \"Hema\"
str3 = \"Bhagi\"
str4 = \"bhagi1\"
# for 1st comparision
if(str1.upper() == str2.upper()):
print(\"strings are matched\ \")
else:
print(\"strings are not matched\ \")
# for 2nd comparision
if(str3.upper() == str4.upper()):
print(\"strings are matched\ \")
else:
print(\"strings are not matched\ \")
