regex match last character
<p>I have the following lines,</p>
<pre><code>data:text/javascript;base64,Ly8gSGVyZdsdsd:5
data:text/javascript;base64,Ly8gSGVyZdsdsd:2
data:text/javascript;base64,Ly8gSGVyZdsdsd:1
</code></pre>
<p>I want to select the second line of text above using a regex that matches string that ends in <code>2</code>? I'm stuck, this is what I have:</p>
<pre><code>^.*$
</code></pre>