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
/
"(?:ratingValue|price)": *"?([0-9]+(?:[.][0-9]+)?)
/
gm
Input 1
New
r value from JSON-LD with regex. If i match a quoted value, like "price": "0.00" my regex works: "price": "(.*?)". But if the value is just a number, like "ratingValue": 5, my regex stops working.
Extraction
r value from JSON-LD with regex. If i match a quoted value, like "price": "0.00" my regex works: "price": "(.*?)". But if the value is just a number, like "ratingValue": 5, my regex stops working.