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
/
^(?!\s*"name":.*).*\n?|^\s*
/
gm
Input 1
1
New
{ "country_codes": [ "GB" ], "institution_id": "ins_118309", "name": "Barclaycard (UK) - Online Banking: Personal", // I want to extract this line only "oauth": true, "products": [ "assets", "auth", "balance", "transactions", "identity", "standing_orders" ], "routing_numbers": [] }, "institution_id": "ins_118309", "name": "Metro Bank - Commercial and Business Online Plus", "oauth": true, "products": [ "assets", "auth", "balance", "transactions", "identity", "standing_orders" ], "routing_numbers": [] }
Extraction
{ "country_codes": [ "GB" ], "institution_id": "ins_118309", "name": "Barclaycard (UK) - Online Banking: Personal", // I want to extract this line only "oauth": true, "products": [ "assets", "auth", "balance", "transactions", "identity", "standing_orders" ], "routing_numbers": [] }, "institution_id": "ins_118309", "name": "Metro Bank - Commercial and Business Online Plus", "oauth": true, "products": [ "assets", "auth", "balance", "transactions", "identity", "standing_orders" ], "routing_numbers": [] }