网址URL提取
public class RegexTests {
public static void main(String[] args) {
Pattern pattern = Pattern.compile("((https|http)?:\\/\\/)[a-zA-Z0-9|\\/|\\_|\\-|.|#|?|&|=|@]+");
String input = "查看https://www.doU-y_in.com/dounine/japi。可查看http://pc.git_hub.com/dou-nine/jap_iAV23_ff#23?sdds&23=232@@@12。";
Matcher matcher = pattern.matcher(input);
while (matcher.find()) {
System.out.println(matcher.group());
}
}
}