There is the following in a string (can't use DOM methods or anything of the sort):
There are many of these and class and title vary, as does XXX (some numbers). I want to retrieve the Text for each one, so I tried the following regex:HTML Code:
<a id="linkSubAlbumXXX" class="something" title="somethingelse">Text</a>
//str = very long string of HTML var s = str.match(/<a id="linkSubAlbum.+">(\w+)<\/a>/g);
It seems like it's not possible to get what I want out of this with a single regular expression. Is this true? Thanks.