Article 5SZTG [SOLVED] {n,m}? in regex doesn't work as my idea

[SOLVED] {n,m}? in regex doesn't work as my idea

by
xg3571
from LinuxQuestions.org on (#5SZTG)
I coded like:
Code:namePat = re.compile(r'(Go){1,3}?man')
mo = namePat.search('my name is GoGoGoman')
print(mo.group())result is like:
GoGoGoman

what I expected:
Gomanlatest?d=yIl2AUoC8zA latest?i=C896QaGodls:XY7VemGUSaY:F7zBnMy latest?i=C896QaGodls:XY7VemGUSaY:V_sGLiP latest?d=qj6IDK7rITs latest?i=C896QaGodls:XY7VemGUSaY:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments