Regular Expressions 101

Sponsors

Library entries

0
pcre2

E

E
Submitted by anonymous - 2 months ago
0
pcre2

demo

regex grouping demo
Submitted by Lidro - 2 months ago
0
pcre2

json-extract

eee
Submitted by anonymous - 2 months ago
0
pcre2

Match CSS Gradients

Match CSS Gradients
Submitted by Sean Dellis - 2 months ago
0
pcre2

add _&_ between numbers

adds (space)&(space) between numbers
Submitted by _ - 2 months ago

zpool status

Vote

1

Regular Expression
pcre2

/
(?(DEFINE)(?'value'(?:\N*(?:\n(?:(?: {8}|\t)\N*))*)))\s*pool: (?'pool'\g'value')\n\s*state: (?'state'\g'value')\n((?:\s*status: (?'status'\g'value')\n)?(?:\s*action: (?'action'\g'value')\n)?\s*scan: (?'scan'\g'value')\n)?\s*config:\n\n(?'config'\g'value')\n\s*errors: (?'errors'\g'value')
/
s

Description

Loading markdown...
Submitted by GiorgioAresu - a year ago