Here is my problem:
Using the perl-compatible regular expression funtions in PHP, (preg_match(), preg_replace(), etc.) I would like to do the following:
Match the portion of a string that falls between two predefined words.
So for instance if I had the string:
$mystring = "word blah bloh bleh word";
I would like to match everything between the two "word"'s. Something like this seems intuitive:
/word[word]*word/
...but does not work.
Your help is greatly appreciated.
-Amitrus