public static int checkPattern( String text, String regexChar ) {
    return checkPattern( text, regexChar, "" );
  }
@Test
  public void testCheckPattern() {
    // Check more information in:
    // https://docs.oracle.com/javase/tutorial/essential/regex/literals.html
    String metacharacters = "<([{\\^-=$!|]})?*+.>";
    for( int i = 0; i < metacharacters.length(); i++ ) {
      int matches = TextFileInputUtils.checkPattern( metacharacters, String.valueOf( metacharacters.charAt( i ) ), null );
      Assert.assertEquals( 1, matches );
    }
  }