Regex for a specific string with exact digits : <p>I am trying to get a regex for the below two strings.</p>

<p>Must start, end and contain only these many digits. </p>

<p>SG2222222C</p>

<p>And </p>

<p>P22222222</p>

<p>THANKS </p>
