Submitted by @notGeorgePBurdell - 4 years ago
Matching Character Class Transitions (customization of \b)
\b can be replicated as (?<=\w)(?=\W)|(?<=\W)(?=\w)
Understanding how to create these class transitions can be beneficial for several reasons. In this instance, counting the results of this regex can be used to measure randomness within strings containing multiple character classes.