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
r"
Hub\.config\.set\('\w*',\s*({[\s\S]*})
"
gm
Input 1
New
Hub = {}; Hub.config = { config: {}, get: function(key) { if (key in this.config) { return this.config[key]; } else { return null; } }, set: function(key, val) { this.config[key] = val; } }; Hub.config.set('sku', { valCartInfo : { itemId : '576938415361', cartUrl: '//cart.mangolane.com/cart.htm' }, apiRelateMarket : '//tui.mangolane.com/recommend?appid=16&count=4&itemid=576938415361', apiAddCart : '//cart.mangolane.com/add_cart_item.htm?item_id=576938415361', apiInsurance : '', wholeSibUrl : '//detailskip.mangolane.com/service/getData/1/p1/item/detail/sib.htm?itemId=576938415361&sellerId=499095250&modules=dynStock,qrcode,viewer,price,duty,xmpPromotion,delivery,upp,activity,fqg,zjys,amountRestriction,couponActivity,soldQuantity,page,originalPrice,tradeContract', areaLimit : '', bigGroupUrl : '', valPostFee : '', coupo
Substitution
Hub = {}; Hub.config = { config: {}, get: function(key) { if (key in this.config) { return this.config[key]; } else { return null; } }, set: function(key, val) { this.config[key] = val; } }; Hub.config.set('sku', { valCartInfo : { itemId : '576938415361', cartUrl: '//cart.mangolane.com/cart.htm' }, apiRelateMarket : '//tui.mangolane.com/recommend?appid=16&count=4&itemid=576938415361', apiAddCart : '//cart.mangolane.com/add_cart_item.htm?item_id=576938415361', apiInsurance : '', wholeSibUrl : '//detailskip.mangolane.com/service/getData/1/p1/item/detail/sib.htm?itemId=576938415361&sellerId=499095250&modules=dynStock,qrcode,viewer,price,duty,xmpPromotion,delivery,upp,activity,fqg,zjys,amountRestriction,couponActivity,soldQuantity,page,originalPrice,tradeContract', areaLimit : '', bigGroupUrl : '', valPostFee : '', coupo