I am trying to create a regex expression for the beginning of an object so I can replace the block complete with a single "
in vscode's find and replace.
My Regex
("id":{"\$oid":)[0-9]+(},"product_id":)[0-9]+(,")
My sample input
{"id":{"$oid":973},"product_id":973,"product_name":"Scotch - Queen Anne","product_amount":92,"product_group":"not perishable","distribution_to":"The Salvation Army Visalia - Neighborhood Market","distribution_from":"MCFB","expiration_date":"8/24/2020","pack_date":"4/19/2021","sell_by_date":"12/6/2020","use_by_date":"2/18/2021","created_at":"2020-04-24 03:15:40 -0400","updated_at":"2020-04-24 03:15:40 -0400"},
I have tested this expression on these websites with success: regex101.com, regexr.com, however, I still get an error when I paste into my vscode.