title: Regex Expression with several different patterns
body: <p>I'm using these regex expressions in VB.NET and they all work separately:</p>
  
  <pre><code>texto = "ola &lt;a href=""http://www.aiaia.pt""&gt;coisas&lt;/a&gt; tas &lt;object&gt; zborgind &lt;/object&gt; bom &lt;iframe src=""http://www.uiuiuiuiiu.pt""&gt;&lt;/iframe&gt; hoje? &lt;center&gt;qq coisa&lt;/center&gt; Já acabou, &lt;script&gt;document.write(""oi"")&lt;/script&gt; ...agora!"
  Dim regEx2 As New Regex("&lt;a[^&gt;]*&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;/a[^&gt;]*&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;object.*?&gt;.*&lt;/object\s*?&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;iframe.*?&gt;.*&lt;/iframe\s*?&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;center[^&gt;]*&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;/center[^&gt;]*&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  regEx2 = New Regex("&lt;script[^&gt;]*&gt;([\w\W]*?)&lt;/script&gt;", RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  texto = regEx2.Replace(texto, String.Empty)
  </code></pre>
  
  <p>How can I join them all in one expression?</p>
  
  <p>I tried this to join them in one:</p>
  
  <pre><code>Dim texto2 As String = "ola &lt;a href=""http://www.aiaia.pt""&gt;coisas&lt;/a&gt; tas &lt;object&gt; zborgind &lt;/object&gt; bom &lt;iframe src=""http://www.uiuiuiuiiu.pt""&gt;&lt;/iframe&gt; hoje? &lt;center&gt;qq coisa&lt;/center&gt; Já acabou, &lt;script&gt;document.write(""oi"")&lt;/script&gt; ...agora!"
  
  Dim re As New Regex( _
      "^&lt;a[^&gt;]*&gt;$" &amp; _
      "^&lt;/a[^&gt;]*&gt;$" &amp; _
      "^&lt;object.*?&gt;.*&lt;/object\s*?&gt;$" &amp; _
      "^&lt;iframe.*?&gt;.*&lt;/iframe\s*?&gt;$" &amp; _
      "^&lt;center[^&gt;]*&gt;$" &amp; _
      "^&lt;/center[^&gt;]*&gt;$" &amp; _
      "^&lt;script[^&gt;]*&gt;([\w\W]*?)&lt;/script&gt;$", _
      RegexOptions.IgnoreCase Or RegexOptions.Multiline _
  )
  </code></pre>
  
  <p>But doesn't work. Can you help me? Thanks in advance.</p>