Match only first and last 4 numbers using regex : <p>So i want to match the first number and the last four numbers using regex.</p>

<p>I am able to get the last 4 numbers using <code>\d(?=\d{4})</code> but unable to get the first and last four numbers together. Tried multiple combinations.</p>
