class Testimmutablestring1{
public static void main(String[] args )
{
Pattern p = Pattern.compile("^(http://|https://)?(www.)([a-zA-Z0-9]+).[a- zA-Z0-9]*.[a-z]{3}.?([a-z]+)?$"));
Matcher m;
m=p.matcher(https://test.com:8080/wh-101);
}
}
Ошибка: tablestring1.java: 3: ошибка: ';' ожидаемый
А-Z0-9] +) [A-Za-Z0-9] * [A-Z] {3} ([A-Z] +) $ "))...?;
^
tablestring1.java:5: ошибка: ')' ожидается
м = p.matcher (https://test.com:8080/wh-101);
^
2 ошибки
Может кто-нибудь объяснить, пожалуйста