Merlin Morgenstern wrote:
> 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
> <div id="test">
> bla blub
> I would like to extract the text "bla blub" out of this example.
This might do the trick (not tested):
preg_match( "/<div\s+[^>]*>([^<]*)<\/div>", $yourtext, $match );
Per Jessen, Zürich (16.8°C)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php