i was never good with regex… could you please help me?

  1. Want to remove [stream …] tags:
    $content = “blah blah blah [stream provider=video flv=x:video.flv embed=false share=false width=450 height=253 dock=true controlbar=over bandwidth=high autostart=false /]”;

$content = preg_replace( ‘/\[(stream provider)(.*)\/\]’, ‘’, $content);
I know the regex is wrong…

  1. content= ‘[video title=“vtitle” size=10 width=400 height=300][/video]

how can i get this?
$title=vtitle; size=10; width=400; height=300;

note, tag may be only
[video][/video] or
[video title=“vtitle” size=10][/video]
(users do not use always full options)

Many, many… Thanks

$text = preg_replace('#\\[stream[^\\]]*\\]#is', '', $text);
  1. Yes, you can pick out the values using preg_match.