Nog.. one of my bigger weaknesses (aside from not knowing how to code my way out of a paper bag) is regular / perl expressions..
I look at your snippet of code:
preg_match_all('/(?<=:")[^"]+(?=")/', $testText, $matches);
And I find some difficulty dicyphering what the perl expression is saying..
I suppose the brackets denote groups?
what exactly does ?<=:" imply?
then we have ["]+ which I assume simply implys anything that is NOT a double quote one or more times?
then finally a third group? (?=") meaning equal sign is optional before the closing double quote?
Sorry..I'm slightly lost.. any help in explaining this would be greatly appreciated.
cheers,
NRG
P.S I knew there was a more elegant solution than mine involving preg! :rolleyes: