var extract = '<a href=\"http://www.exa.ru\">Сайт exa_Leader</a>'; var pattern = '/<a href="([^"]*)">\s*/'; var result = extract.replace(pattern,"$1") alert(result)