Find/Change dialog, GREP tab
This expression finds hyperlinks pretty well.
When I put it in a .jsx file and fire it from the Scripts palette, it doesn't work.
The following works, but obviously doesn't match as many hyperlinks:
app.findGrepPreferences.findWhat = 'http\:\/\/([\w\-\]+[\.\/]?)+';
I've tried adding ?, \?, and \\? but it bombs out -- no matches.
Same thing with the initial either/or between www and http as the start of the pattern.
app.findGrepPreferences.findWhat = "(www|http\\:\\/\\/)([\\w\\-\\?\\=\\&]+[\\.\/]?)+";
Hope that helps.