I'm trying to use this regexp from jeff Atwood's blog post on detecting links:
\(?\bhttp://[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|]
However, this JS code breaks and gives a SyntaxError: Unexpected token ILLEGAL
var myRe = \(?\bhttp://[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|];
var myArray = myRe.exec("http://en.wikipedia.org/wiki/PC_Tools_(Central_Point_Software)");
console.log(myArray);
\w:var myRe = /\(?\bhttp:\/\/[!#%&()+-;=?-Z_a-z~|]*[-\w#%&()+\/=@|~]/;