Hi davido,

This is what I need to extract from the html file:

Relay Status Information FillDB File Size Limit: 0.09% ( 2772 / 3145728 Bytes ) FillDB File Count Limit: 0.01% ( 1 / 10000 Files )

Here is a sample of the html file:

div><div class="settingsectionbody" style="display: none"><ul><li>_BES +Relay_PostFile_ChunkSize: 0</li><li>_BESRelay_PostFile_ComputerFolder +Count: 100</li><li>_BESRelay_PostFile_ThrottleKBPS: 0</li><li>_BESRel +ay_PostFile_TimeoutSeconds: 300</li><li>_BESRelay_UploadManager_Buffe +rDirectoryMaxCount: 10000</li><li>_BESRelay_UploadManager_BufferDirec +toryMaxSize: 1073741824</li><li>_BESRelay_UploadManager_CompressedFil +eMaxSize: 20971520</li><li>_BESRelay_UploadManager_ChunkSize: not app +licable on root server</li><li>_BESRelay_UploadManager_ThrottleKBPS: +not applicable on root server</li></ul></div></div><hr><div class="se +ctiontitle">Relay Status Information</div><br><div class="formline">< +div class="formlabel">FillDB File Size Limit:</div><div class="formin +put">0.0% ( 0 / 3145728 Bytes )</div></div><div class="formline"><div + class="formlabel">FillDB File Count Limit:</div><div class="forminpu +t">0.0% ( 0 / 10000 Files )</div></div><br><hr><div class="sectiontit +le">Console User Information</div><br><a href="/data/login"> div><div class="settingsectionbody" style="display: none"><ul><li>_BES +Relay_PostFile_ChunkSize: 0</li><li>_BESRelay_PostFile_ComputerFolder +Count: 100</li><li>_BESRelay_PostFile_ThrottleKBPS: 0</li><li>_BESRel +ay_PostFile_TimeoutSeconds: 300</li><li>_BESRelay_UploadManager_Buffe +rDirectoryMaxCount: 10000</li><li>_BESRelay_UploadManager_BufferDirec +toryMaxSize: 1073741824</li><li>_BESRelay_UploadManager_CompressedFil +eMaxSize: 20971520</li><li>_BESRelay_UploadManager_ChunkSize: not app +licable on root server</li><li>_BESRelay_UploadManager_ThrottleKBPS: +not applicable on root server</li></ul></div></div><hr><div class="se +ctiontitle">Relay Status Information</div><br><div class="formline">< +div class="formlabel">FillDB File Size Limit:</div><div class="formin +put">0.0% ( 0 / 3145728 Bytes )</div></div><div class="formline"><div + class="formlabel">FillDB File Count Limit:</div><div class="forminpu +t">0.0% ( 0 / 10000 Files )</div></div><br><hr><div class="sectiontit +le">Console User Information</div><br><a href="/data/login">

My work environment is very strict so I am very limited in what modules can be installed.

Thanks


In reply to Re^2: Parse html file by TonyNY
in thread Parse html file by TonyNY

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.