0 Replies Latest reply on Oct 13, 2012 8:07 AM by TOverturf

    Parsing HTML with RegExp

    TOverturf Level 1

      I have loaded a .html file and want to parse some variables. I need to search the html for a table with the ID of "formRedirNormalRadios", then parse that table again. In short, this html:

       

      <more html>

       

      <td id="formRedirNormalRadios">

      <input type="radio" name="choice1" value="1" onclick="controlRedirNormal()" checked="checked" />

      Option 1<br>

      <input type="radio" name="choice1" value="2" onclick="controlRedirNormal()" checked="checked" />

      Option 2<br>

      <input type="radio" name="choice1" value="3" onclick="controlRedirNormal()" checked="checked" />

      Option3

      </td>

       

      <also some more html>

       

      would have to result in this variable:

       

      Array = [formRedirNormalRadios, 1, checked, 2, checked, 3, checked]