</tr>
<tr><td class="nabg">X-Storm</td><td class="text" align="center">23</td><!-- if _RO_ --><td class="text" align="center">0.00</td><!-- end _RO_ --><td class="text" align="center">0.00</td><td class="text" align="center">0</td><!-- if _RO_ <td class="text" align="center"><%Sprees%></td><td class="text" align="center"><%MultiKills%></td> end _RO_ --></tr>
<tr><td class="nabg">CrellerFTW</td><td class="text" align="center">16</td><!-- if _RO_ --><td class="text" align="center">0.00</td><!-- end _RO_ --><td class="text" align="center">1.00</td><td class="text" align="center">1</td><!-- if _RO_ <td class="text" align="center"><%Sprees%></td><td class="text" align="center"><%MultiKills%></td> end _RO_ --></tr>
This block may contain up to six lines instead of two. Is there a way to make Rainmeter handle displaying the players names, no matter how many there are?
Another complication is that the regexp can return zero hits as well. So I might rephrase the problem:
I need to have Regexp to return 0 - 6 hits, and a way to handle the empty indices that result when Regexp return fewer than 6 hits. Then I can always tune the search strings to give the correct answers.
Come to think of it, It might be possible to do with ungreedy searching to filter out each result until none are left, and use Errorstring when none are left.
EDIT: First version work and gives one hit if I remember to add the last ". However, it does not return multiple hits. Second one stil fails.
This RegExp pattern allows 0 -6 results. If 6 results exist, 6 results will be returned, and only 3 results will be returned if only 3 results exist. If it is empty, null is returned then it is replaced with "n/a" by Substitute.