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
/
(?:(dataLayerLocal\.products = ))\[.*\];
/
gm
Input 1
<script type="text/javascript"> dataLayerLocal.products = dataLayerLocal.products || []; dataLayerLocal.products = [{'amount':'0','categories':['Gereizte Augen','Augentropfen','Augentropfen','Augentropfen'],'categoryIds':['A001G001','A003E001A001','A003G002A001','A003T001A001'],'name':'Artelac Complete EDO','price':1399,'pzn':'11617896'},{'amount':'0','categories':['Fenistil'],'categoryIds':['A001F001'],'name':'Fenistil Dragees','price':599,'pzn':'00376975'},{'amount':'0','categories':['Gereizte Haut','Gesichtspflege f\xFCr allergische Haut','Insektenstiche','Sonnenallergie & Mallorca-Akne','Basispflege & Reinigung'],'categoryIds':['A001G002','HN001A002G001','HN001A002I002','HN001A002S001','HN001N001B001'],'name':'Linola akut 0,5% Creme','price':969,'pzn':'02138990'},{'amount':'0','categories':['Gereizte Nase','Bei Allergie'],'categoryIds':['A001G003','EN002S001N003B002'],'name':'Otri-Allergie Nasenspray Fluticason','price':1049,'pzn':'12400130'},{'amount':'0','categori
Extraction
<script type="text/javascript"> dataLayerLocal.products = dataLayerLocal.products || []; dataLayerLocal.products = [{'amount':'0','categories':['Gereizte Augen','Augentropfen','Augentropfen','Augentropfen'],'categoryIds':['A001G001','A003E001A001','A003G002A001','A003T001A001'],'name':'Artelac Complete EDO','price':1399,'pzn':'11617896'},{'amount':'0','categories':['Fenistil'],'categoryIds':['A001F001'],'name':'Fenistil Dragees','price':599,'pzn':'00376975'},{'amount':'0','categories':['Gereizte Haut','Gesichtspflege f\xFCr allergische Haut','Insektenstiche','Sonnenallergie & Mallorca-Akne','Basispflege & Reinigung'],'categoryIds':['A001G002','HN001A002G001','HN001A002I002','HN001A002S001','HN001N001B001'],'name':'Linola akut 0,5% Creme','price':969,'pzn':'02138990'},{'amount':'0','categories':['Gereizte Nase','Bei Allergie'],'categoryIds':['A001G003','EN002S001N003B002'],'name':'Otri-Allergie Nasenspray Fluticason','price':1049,'pzn':'12400130'},{'amount':'0','categori