-----Original Message-----
From: Python-list <python-list-
bounces+jcasale=activenetwerx....@python.org> On Behalf Of MRAB
Sent: Friday, April 13, 2018 12:05 PM
To: python-list@python.org
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

Reply via email to