Message116229
The tests for re include these regexes:
a.b(?s)
a.*(?s)b
I understand what Georg said previously about some people preferring to put them at the end, but I personally wouldn't do that because some regex implementations support scoped inline flags, although others, like re, don't.
I think that second regex is a bit perverse, though! :-)
On the other matter, I could make the Unicode script and block available through a couple of functions if you need them, eg:
# Using Python 3 here
>>> regex.script("A")
'Latin'
>>> regex.block("A")
'BasicLatin' |
|
Date |
User |
Action |
Args |
2010-09-12 20:47:49 | mrabarnett | set | recipients:
+ mrabarnett, loewis, georg.brandl, collinwinter, gregory.p.smith, jimjjewett, sjmachin, amaury.forgeotdarc, pitrou, nneonneo, giampaolo.rodola, rsc, timehorse, mark, vbr, ezio.melotti, jaylogan, akitada, moreati, r.david.murray, brian.curtin, jhalcrow |
2010-09-12 20:47:47 | mrabarnett | set | messageid: <1284324467.15.0.97016727689.issue2636@psf.upfronthosting.co.za> |
2010-09-12 20:47:44 | mrabarnett | link | issue2636 messages |
2010-09-12 20:47:44 | mrabarnett | create | |
|