brown wooden blocks on white surface
Photo by Brett Jordan on Unsplash

You have probably seen cases when you can do splits of strings into multiple parts based on a pattern that is observed in the string. For example, let us say that we want to save all the words that are part of a sentence. 

To do that, we usually try to do split the sentence into words based on the spaces that we find, such as:

Continue reading