-----Original Message----- From: Python-list <python-list- [email protected]> On Behalf Of MRAB Sent: Friday, April 13, 2018 12:05 PM To: [email protected] Subject: Re: Python regex pattern from array of hex chars
> Use re.escape:
>
> regex = re.compile('[^{}]+'.format(re.escape(''.join(c for c in
> character_class))))
Brilliant, thanks!
--
https://mail.python.org/mailman/listinfo/python-list
