title: How to fetch a value from a string in javascript?
body: <p>I want to fetch a particular value from a javascript string without using methods like <code>indexOf</code> or <code>substr</code>. Is there any predefined method of doing so?</p>
  
  <p>For e.g., I have a string,</p>
  
  <pre><code>var str = "a=1|b=2|c=3|d=4|e=5|f=6";
  </code></pre>
  
  <p>I want to fetch the value of c from above string, how can I achieve it directly?</p>