i hope that someone will help me with this problem ..
i have a string with some (tags) on it ..
the tags are not html tags ...i used <:::test:::>...<:::/test:::> to easy point to the words i want later ...
the problem is ..
i would like to get the words between those tags ..
i tried the preg_match_all but it seems to get the whole string not only the words between 2 tags ..
an example about what i need :
$stris="<:::test:::>hi my name is <:::/test:::><:::test:::> Testtext <:::/test:::> and here is another <:::test>text<:::/test:::>";
the preg_match_all should return :
1 match :hi my name is
2 match :Testtext
3 match :text
please help me to get the right expression,since it is not working with me ..
here is what i have :
$findwords = preg_match_all("/<:::test:::>(.*)<:::\/test:::>/", $stris, $found);
thanks in advance ...