What I am missing here?
import re
sample = 'this is an example'
p = re.compile('this is\b\w+\bexample')
p.findall(sample)
[]
Shouldn't the pattern match? \b\w+\b
should match space + an + space
or not?
What I am missing here?
import re
sample = 'this is an example'
p = re.compile('this is\b\w+\bexample')
p.findall(sample)
[]
Shouldn't the pattern match? \b\w+\b
should match space + an + space
or not?