I have a string in php as
$str = "@113_Miscellaneous_0 = 0@,@104_documentFunction_0 = 1@";
How do i apply regular expression so i can extract the strings in between the @ char so that the resulting result will be an array say
result[0] = "113_Miscellaneous_0 = 0";
result[1] = "104_Miscellaneous_0 = 1";
@Fluffeh thanks for editing @ Utkanos - tried something like this
$ptn = "@(.*)@";
preg_match($ptn, $str, $matches);
print_r($matches);
output:
Array
(
[0] => \"113_Miscellaneous_0 = 0\",\"104_documentFunction_0 = 1\"
[1] => \"113_Miscellaneous_0 = 0\",\"104_documentFunction_0 = 1\"
)