[thelist] regular expression help

Bob Meetin ontheroad at frii.com
Sat Mar 31 22:13:28 CDT 2007

This is PHP.

$data = "some content... {delimiter}whatever expression{/delimiter} 
content continues";

First need: I am trying to figure out how to get the contents within the 
two delimiters into a variable without affecting the exterior contents.

$some_variable = "whatever expression";

Second need: to be able to delete the contents between the delimiters 
again without affecting any other data.

$data = "some content... {delimiter}{/delimiter} content continues";

I have tried a number  of things with preg_grep and preg_match with no 
luck. Thx.

More information about the thelist mailing list