var html = '<a href="test.html">';var m = html.match(/<a[^>]*?\bhref=['"](.*?)['"]/);print (m[1]);
Standard input is empty
test.html
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!