JSFiddle - React, Tailwind, and code Playground
by goldorak
JavaScript
const findQuotesRegex = /(?<=(["']\b))(?:(?=(\\?))\2.)*?(?=\1)/
const chaine = 'sid | default: "2"'
const tutu = findQuotesRegex.exec(chaine)
console.log('tutu', tutu)
by goldorak
const findQuotesRegex = /(?<=(["']\b))(?:(?=(\\?))\2.)*?(?=\1)/
const chaine = 'sid | default: "2"'
const tutu = findQuotesRegex.exec(chaine)
console.log('tutu', tutu)