Message155299
| Author |
py.user |
| Recipients |
Ramchandra Apte, docs@python, ezio.melotti, georg.brandl, mrabarnett, py.user, python-dev |
| Date |
2012年03月10日.08:42:14 |
| SpamBayes Score |
0.010920607 |
| Marked as misclassified |
No |
| Message-id |
<1331368934.8.0.996037634245.issue14244@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"+ 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']
>>> |
|