//https://www.hackerrank.com/challenges/matching-x-repetitions
public class Solution {    
  public static void main(String[] args) {
    Regex_Test tester = new Regex_Test();
    tester.checker("^[a-zA-Z02468]{40}[\\s13579]{5}$");
  }
}

Create matching-x-repetitions.java