Hey everyone, I'm playing around with extractBefore and extractAfter and I was wondering if I could get Matlab to extract everything before and after a character up to a specified character boundary. Like so,
I want to take something like this example string and extract all the characters before and after "c" up until it reaches the letter "z". SO my outputs might look like,
extractAfter = 'bbss'
extractBefore = 'bbkk'
How can I do this?