Message145475
| Author |
mrabarnett |
| Recipients |
brian.curtin, ezio.melotti, mrabarnett, techmaurice, vstinner |
| Date |
2011年10月13日.17:46:28 |
| SpamBayes Score |
0.026648631 |
| Marked as misclassified |
No |
| Message-id |
<1318527988.76.0.095026712804.issue13169@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The quantifiers use 65535 to represent no upper limit, so ".{0,65535}" is equivalent to ".*".
For example:
>>> re.match(".*", "x" * 100000).span()
(0, 100000)
>>> re.match(".{0,65535}", "x" * 100000).span()
(0, 100000)
but:
>>> re.match(".{0,65534}", "x" * 100000).span()
(0, 65534) |
|