Regular Expressions 101

Sponsors

Library entries

0
pcre2

T1

Reguljärt uttryck för att matcha T1
Submitted by Jonas Thor - 22 minutes ago
0
pcre2

weekly

写周报把优路仕这边的工时天数去掉
Submitted by anonymous - 11 hours ago
0
pcre2

test123

test
Submitted by anonymous - 14 hours ago
0
pcre2

Parse XML element parts

Parse XML element parts
Submitted by emadhusameldeen@gmail.com - 2 days 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
1
java

Email finder

Matches with the valid email addresses.
Submitted by anonymous - 4 days ago
0
pcre2

Example 1

Example
Submitted by anonymous - 4 days ago
0
java

Other segment

Other segments
Submitted by Lufram - 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_ - 2 months ago