Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?:(?<name>\w+)\s+{|(?!^)\G)\W*(?<point>\d+):\s+(?<content>.+?(?=,\s+\d+:|\s*}))
/
gm
Input 1
1
New
| Elencia { 1: Simple one, 0: A longer sentence, or maybe not, 2: Another sentence } | Elencia { 10: Sentence with spaces on left, 0: Same but with some spaces on right }
Extraction
| Elencia { 1: Simple one, 0: A longer sentence, or maybe not, 2: Another sentence } | Elencia { 10: Sentence with spaces on left, 0: Same but with some spaces on right }