November 30th, 2009, 02:04 AM
Php extract substring from between single quote marks
Hi, I'm sure this is very simple, but I'm afraid I've had a look around and can't find the answer so I was hoping someone here could help.
I have a string
"'The name' and a bit of description"
which I am pulling from a mysql query. I want to extract:
using php. I'm sure it's a simple regular expression, but can't work it out, could someone help me out?
December 1st, 2009, 06:02 PM
Try using this expression:
P.S. Why did you post this in the web design forum? (I already moved it to the Regex forum.)