title: C# - Multi Values of an input string using Regex
body: <p><strong>I Have an input  text  :</strong> </p>
  
  <pre><code>string DefaultInput = "Name : John | FamilyName : Doe |";
  </code></pre>
  
  <p><strong>I Want to be able to Extract the "John" &amp; "Doe" and maybe other values from 1 input using Regex</strong></p>
  
  <p>My Code : </p>
  
  <pre><code>Match m = Regex.Match(DefaultInput,"Name : (.*?) | FamilyName : (.*?) |");
  this.textBox1.Text = "ProfileName : " + m.Groups[1].Value + "\r\nProfileFamilyName : " + m.Groups[2].Value;
  </code></pre>