Say I have a string 'ad>ad>ad>>ad' and I want to split on this on the '>' (not the '>>' chars). Just picked up regex and was wondering if there is a way (special character) to split on a specific part of the matched expression, rather than splitting on the whole matched expression, for example the regex could be:
re.split('[^>]>[^>]', 'ad>ad>ad>>ad')
Can you get it to split on the char in parenthesis [^>](>)[^>] ?