Target a specific part of a string based on order
<p>Im trying to fetch a number from meta tags - but unsure how to targets the specific part of the string. I want to fetch the number in the string - 0888462709866. How do I fetch it - I need to go by its place in the string? </p>

<p>Problem is that it can sometimes be no string - as per the second example below. It dies keep the comma so the order should e the same anyhow? </p>

<p>Script: </p>

<pre><code>ccs_cc_args.push(['EAN_CODE', $("meta[name='description']").attr('content')]);
console.log(ccs_cc_args);
</code></pre>

<p>With number:</p>

<pre><code>&lt;meta name="description" lang="nl" content="MacBook 12&amp;quot; 16E M5-6Y54/8GB/512SSD/Space Grey CM5 1.2GHz/HD Graphics 515/US Int. keyboard, MLH82N/A, 0888462709866, Bestellen, Productinformatie, Artikelnummer, Winkelwagen, Plaats en bevestig uw bestelling, €”&gt;
</code></pre>

<p>Without number:</p>

<pre><code> &lt;meta name="description" lang="nl" content="MacBook Pro 13&amp;quot; 12M i5-3210M/8GB/500GB/DVDRW/10.10 DC i5 2.5GHz/Graphics 4000/US Keyboard, MD101-US-BTO1-A3, , Bestellen, Productinformatie, Artikelnummer, Winkelwagen, Plaats en bevestig uw bestelling, €"&gt;
</code></pre>