Regular Expressions 101

Library entries

0
java

Martch Letras y Parentesis

Martch Letras y Parentesis
Submitted by Daniel Gonzalez - 2 days ago
0
pcre2

YouTube link parser

Validate an URI to YouTube video.
Submitted by anonymous - 2 days ago
0
python

Session Start/Close

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

PLDI regex 3

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

PLDI regex 2

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

PLDI regex 1

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

Dyno warning regex

Used to separate things in dyno warning
Submitted by anonymous - 7 days 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