I've frames in long sting like that:
CCadad6876adDDCCdashajdhakdhadhDDCCsfjskfjsklfjDDCClskfjlsdfjDD
The frames are grouped between CC
and DD
. So the example above present three frames.
CCadad6876adDD
CCdashajdhakdhadhDD
CCsfjskfjsklfjDD
CClskfjlsdfjDD
I'd like to extract the frames from this long string to the form presented just above. To do this I've used expression:
CC[a-zA-Z0-9]+DD
hoping to catch first frame within the string.
However, instead of having expected CCadad6876adDD
the whole string was matched. The match is right as the CCadad6876adDDCCdashajdhakdhadhDDCCsfjskfjsklfjDDCClskfjlsdfjDD
start and finishes with CC
and DD
as well, but how to insist the regex to focus on the first frame?.
What shall I modify in RegEx to catch first frame?