I am trying to find words in regular expression with length 4
I am trying this but I am getting an empty list:
#words that have length of 4
s = input("please enter an expression: ")
print(re.findall(r'/^[a-zA-Z]{4}$/',s))
What is wrong with my code ?
my input is: here we are having fun these days
my expected output: ['here', 'days']
my output: []