title: How to find digits (number) in string using Twig?
body: <p>I have product name, which contains only one number.</p>
  
  <pre><code>Product.name="Pack of apples (12 pcs).";
  Product.price=6;
  </code></pre>
  
  <p>What I'm trying to do - is to put 12 to variable, to do a little math later  (ex: show how many costs 1 apple).</p>
  
  <p>I was tried to do following:</p>
  
  <pre><code>{{ set apple = attribute(product, 'title'~lang)|replace('/[^0-9]/', '') }}
  </code></pre>
  
  <p>but with no luck.</p>
  
  <p>I only have access to modifying .twig files, so any workaround would be appreciated</p>