Regular Expressions 101

Sponsors

Library entries

0
pcre

not_next_text

not_text
Submitted by anonymous - a year ago
0
pcre

t1

t1
Submitted by anonymous - a year ago
0
java

Detect [YOTI] in string.xml

we can use this regex?
Submitted by anonymous - a year ago
0
pcre2

Les_crises

Articles revue "Les crises". Clean comments
Submitted by anonymous - a year ago
0
golang

Address

Address check
Submitted by anonymous - a year ago
0
golang

Another regex test

Testing for BetterDiscord chat alias plugin
Submitted by anonymous - a year ago
0
python

Well Defined Branch Names

Checks for well defined branch names
Submitted by anonymous - a year ago
0
python

N-Word Regex

N-Word Regex Status Not finished, highly broken
Submitted by anonymous - a year ago
0
pcre2

任意字符串

(.*)
Submitted by kobunketsu - a year ago
0
pcre

Keep Number and .,

Keep Number and .,
Submitted by HUUTAI - a year 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 - a year ago