title: How do I get values from an array?
body: <p>I have an array which is in the following format:</p>
  
  <pre><code>RBS: [  {
      "RegExp": "",
      "Type": ""
  } ],
  PAN: [ {
      "RegExp": "Date",
      "Type": "Date"
  } ]
  </code></pre>
  
  <p>Now I want to pass the value <code>PAN</code> to a method and it should get the count of <code>PAN</code> length 1 and get <code>PAN</code> of regex values and type value. How can I do this? I formed an array like this: <code>Name</code> holds <code>RBS</code> and <code>PAN</code>:</p>
  
  <pre><code>var Regexp = [];
  RegExpr.push(Name + ":" + Regexp);
  
  function Check(test) {
      //test will be RBS /PAN
  }
  </code></pre>