I have a string = "[VIDEO]http://www.youtube.com/watch?v=etye3skwu9w[/Video]"
I am using the following Regex to match VIDEO tags
'/\[VIDEO\](.+?)\[\/VIDEO\]/i'
It works fine if there is no space in [VIDEO] tag. But if there is any space like [ VIDEO ], it will not work.
How can I ignore spaces. I mean if the Tag is like this [ VIDEO ], my REGEX Should Work.