I\'m trying to match all the images elements as strings,
This is my regex:
html.match(/]+src=\"http([^\">]+)/g);
Th
You can access the src value using groups
src
|->captured in group 1 ---------------------------------- var yourRegex=/]+src\s*=\s*"(http://static2.ccn.com/ccs[^">]+)/g; var match = yourRegex.exec(yourString); alert(match[1]);//src value