title: What is the Regex for /\bbad|\bwords/gi in C#?
body: <p><a href="https://regex101.com/r/oE4nG5/5" rel="nofollow">https://regex101.com/r/oE4nG5/5</a></p>
  
  <p>I want to know this Regex pattern for C#. The pattern I just linked is for Javascript. <code>/\bbad|\bwords/gi</code>
  I want to use the pattern like so: <a href="https://dotnetfiddle.net/Widget/vQhJk9" rel="nofollow">https://dotnetfiddle.net/Widget/vQhJk9</a></p>
  
  <pre><code>using System;
  using System.Text.RegularExpressions;
  
  public class Program
  {
      public static void Main()
      {
          string [] flame = {
              "bad", "words", "inc"
          };
          string argsInput = "some bad ";
          //Regex regex = new Regex(@"\bad|\words|\inc");
          var sjoin = string.Join("|\\b", flame);
          Regex regex = new Regex ("@\"" + sjoin + "\"", RegexOptions.IgnoreCase);
          Console.WriteLine(sjoin);
          Match match = regex.Match(argsInput);
          if (match.Success) {
              Console.WriteLine("success");
          }
      }
  }
  </code></pre>