I’m processing some text in JavaScript (using Node, so please no jQuery). I want to extract all URL’s that are in <a> tags on the page. How can I do this in JavaScript?
I’m processing some text in JavaScript (using Node, so please no jQuery). I want
Share
preg_match_all function taken from http://coding.pressbin.com/16/Javascript-equivalent-of-PHPs-pregmatchall
I would recommend using an online tester such as this one: http://www.pagecolumn.com/tool/regtest.htm