Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
extend\s+([^n]*)(?:(?P<phase>colloid|mineral|basis|isotope|solid-solution)\s+)?(?P<species>[^\n ]+)\s+({(?P<content>((?:[^{}]++|(?4))*))})
/
gm
Input 1
1
New
extend mineral Uraninite { kinetics { rate = -3.2e-08 mol/m2/s area = Uraninite y-term, species = Uraninite w-term { species = H[+] power = 0.37 } } kinetics { rate = 3.2e-09 mol/m2/s area = Uraninite y-term, species = Uraninite w-term { species = H[+] power = 0.37 } } }
Substitution