I try to do this:
① batRegex = re.compile(r'Bat(wo)*+man')
and this:
mo3 = batRegex.search('My name is Batwowowowowowomanman.')
mo3.group()
And I expect this:
'Batwowowowowowoman'
But I got this when I type ①:
re.error: multiple repeat at position 8
I wonder what that means. Because * means any times of repeat and + means at least one time repeat, that's exactly what happened in the mo3. What's wrong.
Thanks:)
My python version is Python 3.10.5.