Regex to get everything between first and last double quote but without double quote -
i have following data
"full name":"vg","address":"abc, 128, street no 9,"(0112093-0)"" now clear in "key":"value" format , separated comma.so have 2 keys "full name" , "address" . need write regex sting between double quotes ,
full name : vg address : abc, 128, street no 9,"(0112093-0)" i tried following getting double quotes along
"(\w+)":"(.*?)" i want remove fist , last double quotes both key , value.
you can use /\"(\w+)":"(.*?)"(?=,|$)/g. test online
i have assumed value can terminate ", (might boundary case) or "$.
Comments
Post a Comment