I have this regular expression that removes html :
sr.Text = Regex.Replace(sr.Text, @”<[^>]*>”, “”);
what should be the regex to remove both html and
[youtube width=”610″ height=”343″]http://www.youtube.com/watch?v=w_BPwoPbghw&hd=1[/youtube]
from the post content ?
Thanks !
Solved it by trying [youtube.*[/youtube]
there’s width and height after [youtube
Final code : sr.Text = Regex.Replace(sr.Text, @”[youtube.*[/youtube]”, “”);