Results 1 to 5 of 5
Thread: Global regex matches
May 27, 2007, 17:08 #1
- Join Date
- Sep 2005
- 2 Post(s)
- 0 Thread(s)
Global regex matches
There is the following in a string (can't use DOM methods or anything of the sort):
<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.
Last edited by Raffles; May 27, 2007 at 17:51.