1 Reply Latest reply on May 11, 2009 4:52 AM by DigitalSpeciaist

    Get the string between li tags, with regular expression

    DigitalSpeciaist Level 1


      I have a unordered list, and I want to store all the strings between the li tags (<li>.?</li>)in an array:

       

      <ul>
      <li>This is String One</li>
      <li>This is String Two</li>
      <li>This is String Three</li>
      </ul>

       

      This is what have so far:
      <li>(.*?)</li>
      but it is not correct, I only want the string without the li tags.

       

      Thanks.