Message230834
sorry if I wasn't clear.
s = 'ACGTCAGCTGAAACCCCAGCTGACGTACGT
re.split(r'(?<CA)(?=GCTG)',s)
expected output is:
acgtCA|GCTGaaacccCA|GCTGacgtacgt
-> ['ACGTCA', 'GCTGAAACCCCA', 'GCTGACGTACGT']
I would also be able to split a text on word boundaries:
re.split(r'\b', "the quick, brown fox")
-> ['the', ' ', 'quick', ', ', 'brown', ' ', 'fox']
but that doesn't work either so maybe it's a problem with all zero-width matches. |
|
Date |
User |
Action |
Args |
2014-11-07 22:08:07 | rexdwyer | set | recipients:
+ rexdwyer, ezio.melotti, mrabarnett, serhiy.storchaka |
2014-11-07 22:08:07 | rexdwyer | set | messageid: <1415398087.21.0.102116868296.issue22817@psf.upfronthosting.co.za> |
2014-11-07 22:08:07 | rexdwyer | link | issue22817 messages |
2014-11-07 22:08:06 | rexdwyer | create | |
|