title: How can I take first word in comma separated string using regular expression
body: <p>I want to take the first comma seperated value from that string.</p>
  
  <pre><code>"Lines.No;StartPos=3;RightAligned;MaxLength =2"
  </code></pre>
  
  <p>I used <code>"\b.*\;"</code> regex to take <code>"Lines.No"</code>. But the result is</p>
  
  <pre><code>"Lines.No;StartPos=3;RightAligned;"
  </code></pre>
  
  <p>thanks.</p>