Can this regex be achieved with only string methods in Python?

前端 未结 0 1937
迷失自我
迷失自我 2020-12-16 02:24

Say I have a string:

foo: bar:baz : moo:mar:maz

I want to count the number of times a colon appears in this string, with a non-whitespace cha

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