title: c# String filtering and split with regex match
body: <p>I'm trying to to filter strings with regex but i'm not that familiar with regex so i need a little help. Also i need to check if string contains specific regex part like example of input bellow:</p>
  
  <p><strong>Input (string):</strong></p>
  
  <pre><code>"&lt;value1;127.0.0.1:20000;value2;value3&gt;Lorem ipsum dolor sit amet!"
  </code></pre>
  
  <p><strong>If exist return these values:</strong></p>
  
  <pre><code>string val1 = ????; //can't be null or empty, must be at least 3 chars/ints
  string val2 = ????; //can be empty string
  string val3 = ????; //can be empty string
  string ipaddress = ????; // can't be empty
  string text = ????; //can be empty string
  </code></pre>
  
  <p><strong>Otherwise if not exist return only "lorem ipsum..." text:</strong></p>
  
  <pre><code>string text = ????; //can be empty string
  </code></pre>
  
  <p>So first i need to check if that specific part <strong></strong> exist in full string.
  String can be without that part.</p>
  
  <p>Can please someone explain me how I can do that?</p>
  
  <p><strong>EDIT:</strong> <em>(please don't judge, i'm really bad with regex)</em>
  Here is what i tried:</p>
  
  <pre><code>private static bool ifContain(string a)
  {
      return Regex.IsMatch(a, @"([a-zA-Z0-9]*)\;([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{5})([a-zA-Z0-9*)\;([a-zA-Z0-9]*)\;([&lt;a-zA-Z0-9]*)");
  }
  </code></pre>