Pep8 for long pattern
Paul Moore
p.f.moore at gmail.com
Tue Mar 27 10:31:53 EDT 2018
Use re.X - see https://docs.python.org/3.6/library/re.html#re.X for details.
On 27 March 2018 at 15:17, Ganesh Pal <ganesh1pal at gmail.com> wrote:
> Hello Python friends,
>
> How do I split the below regex , so that it fits within the character
> limit of 79 words
>
>
> pattern = [
> r'(?P<p_owner>([0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+::HEAD))',
>
> r'(?P<a_owner>(owner:\s+[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+::HEAD))',
> '.']
>
> I am using Python 2.7 + Linux
>
> Regards,
> Ganesh
> --
> https://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list