fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. String regex = "^.*(domain.it).*(.html){1}$";
  4. System.out.println("http://w...content-available-to-author-only...n.it/aaa/007585100-5/aaa.html".matches(regex));
  5. System.out.println("http://a...content-available-to-author-only...n.it/aaa/aaa/aaa.html".matches(regex));
  6. }
  7. }
Success #stdin #stdout 0.06s 380224KB
stdin
Standard input is empty
stdout
true
true