I need to retrieve 71drwec4 , 51drdsf3 from the below expression
or any other characters other than 71drwec3 between "a_secret"> and </div> or something similar to that:
<div class="fs" id="a_secret">71drwec4</div>
<div class="fs" id="a_secre">51drdsf3</div>
<div class="fs" id="a_secr">54451drwec3</div>
how about this:
Change it as you need it (I don’t know what your id’s will look like or if they all have the same class, etc). If you are looking to match elements from inside your own page, jQuery would be way easier, as other posters have mentioned.
And… obligatory reference to other SO post: RegEx match open tags except XHTML self-contained tags