reinhardlange
20.06.2008, 15:55:18
Hallole,
habe einen Text als String:
... jetzt kommt ein Bild <bild>bild.jpg</bild> und weiterer Text ...
funktioniert mit preg_match_all auch -> "/(<bild>.*<\/bild>)/iU"
[0] => Array
(
[0] => bild.jpg
[1] => bild.jpg
)
aber
... jetzt kommt ein Bild <bild>bild.jpg<text>Test-Text</bild> und weiterer Text ...
bekomme ich nicht hin
[0] => Array
(
[0] => bild.jpgTest-Text
[1] => bild.jpgTest-Text
)
Ich hatte erwartet, dass folgendes ausgegeben wird:
[0] => Array
(
[0] => bild.jpg
[1] => bild.jpg
[2] => Test-Text
)
... hat jemand einen guten Rat?
Vielen Dank!
Reinhard
habe einen Text als String:
... jetzt kommt ein Bild <bild>bild.jpg</bild> und weiterer Text ...
funktioniert mit preg_match_all auch -> "/(<bild>.*<\/bild>)/iU"
[0] => Array
(
[0] => bild.jpg
[1] => bild.jpg
)
aber
... jetzt kommt ein Bild <bild>bild.jpg<text>Test-Text</bild> und weiterer Text ...
bekomme ich nicht hin
[0] => Array
(
[0] => bild.jpgTest-Text
[1] => bild.jpgTest-Text
)
Ich hatte erwartet, dass folgendes ausgegeben wird:
[0] => Array
(
[0] => bild.jpg
[1] => bild.jpg
[2] => Test-Text
)
... hat jemand einen guten Rat?
Vielen Dank!
Reinhard