I have the following code and need a regex that will pick out the 0% ( I want to be able to check the value of just this one table). I don't want to get any of the other "percent values". Keep in mind the "KB" values change as well. I was thinking I could load the entire xml code into an array and go down to "Used" on it's own line then search for the next percent figure like (\d+)|% or something like that. There has to be a better way! :-)
Config (Broker Servers, Territories, Brokers, Doc Types, Stats) & Data (Client Queues, Documents, Logs)
<script>writeEndTD();</scr
ipt>
</tr>
<script>swapRows();</scrip
t>
<tr>
<script>writeTD('rowdata-r
');</scrip
t>
Total Storage
<script>writeEndTD();write
TDspan('ro
w-l', 3);</script>
<table width="100%">
<tr>
<td colspan=3></td><td width="100%"></td>
</tr>
<tr>
<script>swapRows();writeTD
nowrap('ro
wdata-r');
</script>
Max. Available
<script>writeEndTD(); writeTDnowrap('rowdata-r')
;</script>
10485760 KB
<script>writeEndTD(); writeTDnowrap('rowdata-r')
;</script>
100%
<script>writeEndTD(); writeTD('rowdata-l');</scr
ipt>
<table width="100%" cellpadding="0">
<tr>
<td class="graph-free"><img border="0" src="../images/pixel.gif" height="6" width="1"></td>
</tr>
</table>
<script>writeEndTD();</scr
ipt>
</tr>
<tr>
<script>writeTDnowrap('row
data-r');<
/script>
Used
<script>writeEndTD(); writeTDnowrap('rowdata-r')
;</script>
2783 KB
<script>writeEndTD(); writeTDnowrap('rowdata-r')
;</script>
0%
<script>writeEndTD(); writeTD('rowdata-l');</scr
ipt>
<table width="0%" cellpadding="0">
<tr>
<td class="graph-used"><img border="0" src="../images/pixel.gif" height="6" width="1"></td>
</tr>
</table>
<script>writeEndTD();</scr
ipt>
</tr>
Start Free Trial