//https://www.hackerrank.com/challenges/alternative-matching
public class Solution {    
  public static void main(String[] args) {
    Regex_Test tester = new Regex_Test();
    tester.checker("^(?:Mr|Mr?s|Dr|Er)\\.[a-zA-Z]+$");
  }
}

Create alternative-matching.java