I\'m trying to get the string hello world.
This is what I\'ve got so far:
$file = \"1232#hello world#\";
preg_match(\"#1232\\#(.*)\\##\
What if you want the delimiter to also be included in the array, this would be more usefull for preg_split where you might not want each array element to begin and end with the delimiters, the example im about to show would would include the delimeters inside the array values. this would be what you would need preg_match('/\#(.*?)#/', $file, $match); print_r($match); this would output array(
[0]=> #hello world#
)