public class Main {
public static void main
(String[] args
) { String regex
= "^.*(domain.it).*(.html){1}$"; System.
out.
println("http://w...content-available-to-author-only...n.it/aaa/007585100-5/aaa.html".
matches(regex
)); System.
out.
println("http://a...content-available-to-author-only...n.it/aaa/aaa/aaa.html".
matches(regex
)); }
}
cHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgU3RyaW5nIHJlZ2V4ID0gIl4uKihkb21haW4uaXQpLiooLmh0bWwpezF9JCI7CiAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oImh0dHA6Ly93Li4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5uLml0L2FhYS8wMDc1ODUxMDAtNS9hYWEuaHRtbCIubWF0Y2hlcyhyZWdleCkpOwogICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJodHRwOi8vYS4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4ubi5pdC9hYWEvYWFhL2FhYS5odG1sIi5tYXRjaGVzKHJlZ2V4KSk7CiAgICB9Cn0g