here is the code:
import re
re.findall(“t”, “this is a aa and that is a aaa”)
[‘t’, ‘t’, ‘t’] #how is that output possible, even when there is no space?
here is the code:
import re
re.findall(“t”, “this is a aa and that is a aaa”)
[‘t’, ‘t’, ‘t’] #how is that output possible, even when there is no space?
It is because there are three 't’s in the text.
i’d forgot the “t” in the expression and was expecting output as ‘t’ only from the string. Thanks for a wake up call.