ok, after like an hour of fooling around with preg_match_all I still can't figure this one out :-)
here's my input string:
"etc {$eric} test me {$again_field} blah"
what I want as output:
array('eric', 'again_field')
can someone help me crack the code?!
here's my feeble attempt:
preg_match("/{\$(.+)}/x", $v, $matches);
and it generates nothing in $matches --but if I drop the final "}" then it finds something totally wrong. ;-) argh.
best
Eric