title: Extracting number from URL
body: <p>In every meta title of my blog articles I want to add "News - {number from URL} - MyWebsite.pl". I don't know how to dynamic extract numbers from URL of articles.</p>
  
  <p>I have:</p>
  
  <pre><code>&lt;title&gt;News - &lt;?php preg_match('/^[1-9]*$/', $_SERVER['REQUEST_URI'], $matches);echo($matches); ?&gt; - MyWebiste.pl&lt;/title&gt;
  </code></pre>
  
  <p>but it returns "News - Array - MyWebsite.pl"</p>
  
  <p>My URL's have structure like: <a href="http://mywebsite.pl/info/news15" rel="nofollow noreferrer">http://mywebsite.pl/info/news15</a> and number "15" I want to add to meta title</p>