Regular Expressions 101

Sponsors

Library entries

0
pcre2

test123

test
Submitted by anonymous - 38 minutes ago
0
pcre2

Parse XML element parts

Parse XML element parts
Submitted by emadhusameldeen@gmail.com - a day ago
0
pcre2

Gene ID from GTF Attributes

As the title says, duh...
Submitted by anonymous - 2 days ago
0
pcre2

match the id of linkedin url

match the id of LinkedIn URL
Submitted by goldentwon - 3 days ago
0
pcre2

Headers

Headers
Submitted by anonymous - 3 days ago
0
pcre2

Example 1

Example
Submitted by anonymous - 3 days ago
0
golang

pxc plcnext

plcnext version strings
Submitted by anonymous - 4 days ago
0
pcre

exp1

asdf
Submitted by anonymous - 4 days ago
0
pcre2

T1

Reguljärt uttryck för att matcha T1
Submitted by Jonas Thor - 6 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_ - 2 months ago