title: Regex - how to match a block comment
body: <p>when it comes to regex I'm always lost. I have an editor created in C# to work with papyrus scripting, the problem I'm having is that users ask me for styling block comment &quot;;/ /;&quot; already working for single line that use &quot;;&quot;</p>
  <p>Here is the code I have so far<br />
  var inputData = @&quot;comment test and this line not suppose to show<br />
  ;/<br />
  comment line 1<br />
  comment line 2<br />
  comment line 3<br />
  /;<br />
  Not suppose to show&quot;;</p>
  <pre><code>        PapyrusCommentRegex1 = new Regex(@&quot;(;/\*.*?\/;)|(.*\/;)&quot;, RegexOptions.Singleline);
          
          foreach (Match match in PapyrusCommentRegex1.Matches(inputData))
          {
              if (match.Success)
              {
                  textBox1.AppendText(match.Value + Environment.NewLine);
              }
          }
  </code></pre>
  <p>The result I get is</p>
  <p>comment test and this line not suppose to show<br />
  ;/<br />
  comment line 1<br />
  comment line 2<br />
  comment line 3<br />
  /;</p>
  <p>All the line before the &quot;;/&quot; shows.
  My question is what am I doing wrong in my regex expression?
  Thanks in advance to all</p>
  <p>Edit:
  To make it more clearer I need a regex pattern in C# for finding all block comment that start with &quot;;/&quot; and finish with &quot;/;&quot; and need to include the &quot;;/ /;&quot;</p>