Answers for "regex get text between single quotes javascript"

6

regex to get items between quotes

(["'])(?:(?=(\\?))\2.)*?\1
Posted by: Guest on June-10-2020
0

js regex between two words

const text = 'My cow always gives milk'
const start = `cow`;
const end = `milk`;
const middleText = text.split(start)[1].split(end)[0]
console.log(middleText) // prints "always gives"
Posted by: Guest on October-13-2021

Code answers related to "regex get text between single quotes javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language