Regular Expressions 101

Sponsors

Library entries

0
python

payment sign day 1

no description available
Submitted by anonymous - 2 years ago
0
python

Last word in a string

no description available
Submitted by anonymous - 2 years ago
0
python

CNPJ Brasileiro

Identifica CNPJ
Submitted by anonymous - 2 years ago
0
python

UF Brasil

no description available
Submitted by anonymous - 2 years ago
0
python

t1

no description available
Submitted by anonymous - 2 years ago
0
python

t2

no description available
Submitted by anonymous - 2 years ago
0
python

t3

no description available
Submitted by anonymous - 2 years ago
0
python

t3

no description available
Submitted by anonymous - 2 years ago
0
python

t2

no description available
Submitted by anonymous - 2 years ago
0
python

UWN main regex - selecting rows

no description available
Submitted by anonymous - 2 years ago
0
python

UWN - deleting category annotations

no description available
Submitted by anonymous - 2 years ago

Add missing ClassVar type annotations to arbitrarily nested Python class attributes with existing annotations.

Vote

0

Regular Expression
python

"
(?P<preceeding>^(?P<whitespace>(?:[ ]{4}|\t)+)(?!self\.)(?P<attrprefix>[a-z0-9_\.]{1,})?(?P<clsattrname>[A-Z_]{1,}): )(?P<annotation>(?!ClassVar)(?:[A-Za-z0-9_]+\.*)+(?:(?:(?:\[?[A-Za-z0-9_]+(?:, | \| )?)+(?:\.{3})?)*(?:\]*))*)+(?P<remainder>.*?$[\r\n])
"
gm

Description

Loading markdown...
Submitted by jrbergen - 9 months ago