I have a string that has two single quotes in it, the \' character. In between the single quotes is the data I want.
\'
How can I write a regex to extract
as in javascript:
mydata.match(/'([^']+)'/)[1]
the actual regexp is: /'([^']+)'/
/'([^']+)'/
if you use the non greedy modifier (as per another post) it's like this:
mydata.match(/'(.*?)'/)[1]
it is cleaner.