This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mrabarnett
Recipients akitada, amaury.forgeotdarc, brian.curtin, collinwinter, ezio.melotti, georg.brandl, giampaolo.rodola, gregory.p.smith, jaylogan, jhalcrow, jimjjewett, loewis, mark, moreati, mrabarnett, nneonneo, pitrou, r.david.murray, rsc, sjmachin, timehorse, vbr
Date 2010-09-12.20:47:44
SpamBayes Score 4.3676344e-08
Marked as misclassified No
Message-id <1284324467.15.0.97016727689.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2010-09-12 20:47:49mrabarnettsetrecipients: + 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:47mrabarnettsetmessageid: <1284324467.15.0.97016727689.issue2636@psf.upfronthosting.co.za>
2010-09-12 20:47:44mrabarnettlinkissue2636 messages
2010-09-12 20:47:44mrabarnettcreate