regex question

Patrick Tufts zippy at cs.brandeis.edu
Thu Jan 20 23:59:40 EST 2000


[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <roy-835F11.21172620012000 at netnews.nyu.edu>, Roy Smith
<roy at popmail.med.nyu.edu> wrote:

You can simplify the 12-digit hex pattern to

[0-9A-F]\{12\}  

use case-insensitive matching when compiling the regexp to take care of
the "a-f" case.

--Pat



More information about the Python-list mailing list