Java regex - get line number from matching text
<p>It's based from my <a href="https://stackoverflow.com/questions/34758621/java-get-text-from-jtextarea-by-number-line">previous question</a>.</p>

<p>For my case I want to get number of line from regex pattern. E.g :</p>

<pre><code>name : andy
birth : jakarta, 1 jan 1990
number id : 01011990 01
age : 26
study : Informatics engineering
</code></pre>

<p>I want to get number of line from text that match of number <code>[0-9]+</code>. I wish output like this :</p>

<pre><code>line 2
line 3
line 4
</code></pre>