title: Regex may contain a character
body: <p>I have 2 kinds of data.</p>
  
  <p>One data is something like this</p>
  
  <pre><code>ws=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
  </code></pre>
  
  <p>and the another data like this</p>
  
  <pre><code>ws=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9;utmz=111872281.1437151704.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
  </code></pre>
  
  <p>I wanna get the ws value, like</p>
  
  <pre><code>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
  </code></pre>
  
  <p>But i got problems for split the ";" character. Because sometime the data have the character, but sometimes it doesn't have that character.</p>
  
  <p>I already tried using </p>
  
  <pre><code>ws=([^]*);?
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ws=([^]*)[;?]
  </code></pre>
  
  <p>and I still doesn't get the correct data.
  Thank you very much.</p>