I'm trying to match tags using preg_replace. The regex used is: <video[^>]*>(.*?)</video>
But I'm getting a server warning: Message: preg_replace() [function.preg-replace]: Unknown modifier ']'
Any clues on why?
Also, How could I modify the regex so it can match [video] tags instead?
Thanks!