I have been struggling to create a regex suiting my need for the HTML below for some time. I´m using the java.util.regex.* package, and for different reasons I need to use this package rather than any third party lib.
What I want is to extract the data inside the tags, so the data I want in this particular HTML is 25 / 25, Lindhagen, 0, Spinninghall, 35 and Test Person.
Is it possible to create a regex for this?
<div id="rsv_detail">
<hr />
<label>Bokningsstatus</label>
<span> </span>
<label>Bokningar</label>
<span>25 / 25 </span>
<br />
<label>Plats</label>
<span>Lindhagen </span>
<label>Anlänt</label>
<span>0 </span>
<br />
<label>Sal</label>
<span>Spinninghall </span>
<label>Max antal</label>
<span>35 </span>
<br />
<label>Ledare</label>
<span>Test Person </span>
<br /><br />
<label>Visa mer</label>
<span>
<a href="/index.php?instructors%5B%5D=X129518&func=la&tak=0.36507500+1302460619">Ledare</a>
<a href="/index.php?locations=LI&func=la&tak=0.36507500+1302460619">Plats</a>
<a href="/index.php?activities=SP_MEDEL&func=la&tak=0.36507500+1302460619">Aktivitet</a>
</span>
<br /><br />
<br />
<br />
<hr />
</div>