I have regex like
m=re.search('z+',"i want to zzz zzzzzzz this is end")
how to find the length of consicutive z ignoring spaces 10(3z+7z)
"example str want to zz z this is end" ->3(2+1)
I am new here, please comment if anything is missing
https://stackoverflow.com/questions/67342749/python-re-module-length-of-occurrence-of-a-word May 01, 2021 at 11:59AM
没有评论:
发表评论