Python re: how to set a limit to how many times a pattern is repeated

前端 未结 0 778
栀梦
栀梦 2020-12-09 08:40

Say if I wanted a pattern to be repeated only until 5 times how should I write the regex pattern? I want to make it so that, pattern repeated 1,2,3,4,5 times returns true, p

相关标签:
回答
  • 消灭零回复
提交回复
热议问题