but i'm not strong in the are of regex,
but i have a string, where i have a few smaller strings,
that can look likt this:
Code: Select all
${*}{*}so basicly, if i have a string like this:
Code: Select all
some text, some stuff ${wow}{looky_here} also ${look}{here}Code: Select all
array1
(
[0]wow
[1]looky_here
)
array2
(
[0]look
[1]here
)preferably using the preg_match statment like this?
Code: Select all
while(preg_match($pattern, $string, $regs)) {
//do stuff like
print_r($regs);
}