Here is the regex 0+1+0 applied to the string 000011010111. We see exactly where the regex matches. Notice that it matches several different substrings of the string.


NOTE: to replay, right click and select Play