title: How can I remove characters from a string after a particular character?
body: <p>Given a string, how do I truncate all characters following one particular character?</p>
  
  <p>For example I have a url:</p>
  
  <pre><code>http://pics.v6.top.rbk.ru/v6_top_pics/resized/250xH/media/img/7/92/754435534528927.jpg"&gt;&lt;div&gt;Some text&lt;/div&gt;"
  </code></pre>
  
  <p>I want to strip all characters after the <code>"</code>, including the <code>"</code> character.</p>