Crew PHP |
|
iets richting
$string = "bla bla [media id=123 size=med] bla bla bla bla [media id=456 size=large] bla bla";
$find= "/media id=([0-9]) size=([a-zA-Z])/i";
preg_match_all($find,$string,$matches);
var_dump($matches);
$string = "bla bla [media id=123 size=med] bla bla bla bla [media id=456 size=large] bla bla"; $find= "/media id=([0-9]) size=([a-zA-Z])/i";
misschien?
edit: Dat werkt nog niet, verder kom k even niet |