I want a simple regex pattern to find a specific word in a string. For instance, in the code below, I want to find if a string has the word, "wings."
import re
body = """
Beginning on Wednesday, April 13, contractors will commence renovation of the
floors, staircase, ceilings and restrooms in Core 5 of the Phase I Academic
Building (the area between wings D and E). During construction, access to Core..
"""
if re.search('\bwings\b', body, re.IGNORECASE):
print("Matches")
else:
print("Does not match")
Isn't the code above supposed to print "Matches" because the word, "wings" exists in the string, body? I tried testing my regex pattern in regex 101 and my pattern worked there. I don't know why it does not work in python. Any help will be appreciated.