Regular Expressions 101

Library entries

0
python

Author cite

Get author names from shitty import
Submitted by anonymous - 4 days ago
0
python

Session Start/Close

Capturing Start/Close in IRC-logs
Submitted by Corpset - 11 days ago
0
python

PLDI regex 3

for pldi answer
Submitted by PlaceReporter99 - 12 days ago
0
python

PLDI regex 2

for pldi answer
Submitted by PlaceReporter99 - 12 days ago
0
python

PLDI regex 1

For pldi answer
Submitted by PlaceReporter99 - 12 days ago
0
python

Dyno warning regex

Used to separate things in dyno warning
Submitted by anonymous - 13 days ago
0
python

Hesla ISJ

ISJ
Submitted by anonymous - 14 days ago
0
python

100-4300

match 100, 200, 300 upto 4300
Submitted by anonymous - 15 days ago
1
python

Get <NIC>

Get NICs from string
Submitted by anonymous - 20 days ago
0
python

camel-assistnt resp

camel-assistnt resp
Submitted by anonymous - a month ago
0
python

langchain

langchain
Submitted by anonymous - a month ago
0
python

URL Pattern Django

URL Pattern Django
Submitted by Fernando Olivera - a month ago
0
python

walter1976FirstClean

walter1976FirstClean
Submitted by anonymous - a month ago

Palindromes

Vote

2

Regular Expression
pcre2

/
(?(DEFINE) (?<palindrome> # Recursive alternative first to match recursive palindromes. # Invert alternatives order to match nested palindromes individually # and (drastically) reduce backtracking. (?<l1>\p{L})\p{M}* [\s\p{P}]* (?&palindrome) [\s\p{P}]* \k<l1>\p{M}* | (?<l2>\p{L})\p{M}* [\s\p{P}]* \k<l2>\p{M}* | \p{L}\p{M}* ) ) (?<=[\s\p{P}]|^) (?&palindrome) (?(?=\s*\p{P}) (?:\s*\p{P})+ | (?=\s|$))
/
gix

Description

Loading markdown...
Submitted by NicolaF_ - 4 months ago