NogDog wrote:If there will only be one quoted portion of the string, you could use something like:
preg_match('/(?<=").*(?=")/', $string, $matches);
echo $matches[0];
yes, there will only be one quoted portion...
however, i just tried your code and it's not working for me...
actually, i just realized that i need to extract the other portion of it as well, here's exactly what I need to do:
I have strings, like this one
"A Unified Framework for Indexing and Retrieval of Multimedia Documents Based on High-Dimension Feature Extraction and Discriminative Classifier Learning," by Prof. Chin-Hui Lee, School of Electrical and Computer Engineering, Georgia Institute of Technology.
and when I print it out to the screen, I need to bold the stuff inside the quotes.
In every string, there will be only one quoted portion, and it will be followed by some other text