Regex: Tokenize repeating characters in a string
TL;DR: Tokenize the repeating characters in a string with (\w)\1*.
Some coding challenges (and the occasional real-world challenge) require you to act on the repeating characters in a string. A couple of examples include finding binary gaps, like th...
spaceaardvark.hashnode.dev2 min read