extracting text - regex
| From: | Merlin Morgenstern | Date: | Wed, 08 Apr 2009 12:18:07 +0000 |
| Subject: | extracting text - regex | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291207@lists.php.net to get a copy of this message | ||
Hello,
I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't figure out how.
Example:
<div id="test">
bla blub
</div>
I would like to extract the text "bla blub" out of this example.
Has anybody an idea on how to do that? Is there a special php function available for this?
Thank you for any hint,
Merlin