title: loop on Json data using regex
body: <p>I want to loop on json data but selecting products, the difficulty lies in that the objects that I want to select follow a pattern product-*. I want to find a sort peace of code that allows something like below:</p>
  
  <pre><code>$.each(data.products, function(i, product) {
     console.log(product.products_name);
  });
  </code></pre>
  
  <p>The actual data JSON is:</p>
  
  <pre><code>{
      "orders_id": "411",
      "customers_name": "Larez",
      "product-1": {
          "product_name": "Walt",
          "product_type": "Poster",
          "product_quantity": "100",
          "product_size": "1/4 Pliego",
          "product_price": "100.00"
      },
      "product-2": {
          "product_name": "Penny",
          "product_type": "Poster",
          "product_quantity": "15",
          "product_size": "1/4 Pliego",
          "product_price": "15.00"
      },
      "product-3": {
          "product_name": "Carol",
          "product_type": "Poster",
          "product_quantity": "50",
          "product_size": "1/4 Pliego",
          "product_price": "50.00"
      },
      "product-4": {
          "product_name": "Julia",
          "product_type": "Poster",
          "product_quantity": "100",
          "product_size": "1/4 Pliego",
          "product_price": "100.00"
      }
  }
  </code></pre>