I need to loop through paragraphs of text and "activate" the links,
which could either have the http:// or just start with www.
I have no problem finding the ones that start with http://. The problem
arises when I want to find the ones that start with www, because the
string has to start with www, I dont want to match the www in
http://www, since I would have activated that one already when it came
up as a match for the http.
The things I have tried are:
If the string is: www.google.com and I use this regular expression:
"\\swww\\S*" returns " www.google.com", with the space before the www.
If the string is : http://www.google.com and I use:
"\\dwww\\d\\S*" matches, seems like it doesn't mind the http:// before
the www.
I want to match the string www.google.com, not http://www.google.com,
and I don't want the space that the first regular expression
includes...