I have a string containing some numbers like this:
$list = "(1)(12)(3)"
or
$list = "(4)";
and I want to get the numbers out like this
$results[0] = "1";
$results[1] = "12";
$results[2] = "3";
or in the second example above:
$results[0] = "4"
I can't for the life of me come up with a regexp to do this.
Can anyone assist?
Thanks
Richard