Is there a way to match numbers that are between repeated characters?
For example to match the numbers in:
Code:
<p class="lorem">.........6.........</p>
<p class="lorem">____8___</p>
<p class="lorem">----------3-------</p>
Something like:
Code:
<p.*?>[_-\]*?\K[0-9](?=[_-\]*?</p>)
Except that would match strings like:
Code:
<p class="lorem">_._--__8..----</p>
and would fail to match strings like:
Code:
<p class="lorem">****8***</p>
when what I'm trying to do is match numbers nested within ANY repeated string of characters.