On Oct 8, 11:42 am, MRAB <pyt...@mrabarnett.plus.com> wrote: > inhahe wrote: > > Can someone tell me why this doesn't work? > > > colorre = re.compile ('(' > > '^' > > '|' > > '(?:' > > '\x0b(?:10|11|12|13|14|15|0\\d|\\d)' > > '(?:' > > ',(?:10|11|12|13|14|15|0\\d|\\d)' > > ')?' > > ')' > > ')(.*?)') > > > I'm trying to extract mirc color codes. >
You might find this site interesting (http://utilitymill.com/utility/ Regex_For_Range) to generate RE's for numeric ranges. -- Paul -- http://mail.python.org/mailman/listinfo/python-list