Message155299
"+ returning a list containing the resulting substrings. If
+ capturing parentheses are used in pattern, then the text of all
+ groups in the pattern are also returned as part of the resulting
+ list."
not only text
>>> import re
>>> re.split(r'(a)(x)?', 'abcabc')
['', 'a', None, 'bc', 'a', None, 'bc']
>>> |
|
Date |
User |
Action |
Args |
2012-03-10 08:42:14 | py.user | set | recipients:
+ py.user, georg.brandl, ezio.melotti, mrabarnett, docs@python, python-dev, Ramchandra Apte |
2012-03-10 08:42:14 | py.user | set | messageid: <1331368934.8.0.996037634245.issue14244@psf.upfronthosting.co.za> |
2012-03-10 08:42:14 | py.user | link | issue14244 messages |
2012-03-10 08:42:14 | py.user | create | |
|