I have been sifting across the internet for long and stack overflow in particular. But, I do not seem to find a regex explanation to find multiple intersecting / non-intersecting sub strings:
Suppose my original string is:
aabcdacdacdfghcdacds
and the sub string to be fetched is:
cdacd
and I wish to find intersecting or non-intersecting sub strings as groups
This means I want the regex for three groups from the original string:
group 1: (cdacd)
group 2: (cdacd)
group 3: (cdacd)
Notice that cdacd for group 1 and group2 in aabcdacdacdfghcdacds have an intersecting cd.
Please advise.