import java.util.*;
import java.lang.*;
import java.io.*;

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String input_str = "http://w...content-available-to-author-only...e.com?and=value&s=more\nhttp://10.23.46.134\nemail@me.at.site.com";
		String regex = "(([A-Za-z]{3,9}:(?://)?)(?:[-;:&=+$,\\w]+@)?[A-Za-z0-9.-]+|(?:www\\.|[-;:&=+$,\\w]+@)[A-Za-z0-9.-]+)((?:/[+~%/.\\w-]*)?\\??(?:[-+=&;%@.\\w]*)#?(?:[.!/\\\\\\w]*))?";
		String res = input_str.replaceAll(regex, "<a href='$0'>$0</a>");
		System.out.println(res);
	}
}