private String convertTimestamp(){
  String result=timestampFormat.replaceAll(VALID_DATEFORMAT_CHAR_PATTERN + "+","\\\\S+");
  result=result.replaceAll(Pattern.quote("."),"\\\\.");
  return result;
}

private String convertTimestamp ( ) { String result = timestampFormat . replaceAll ( VALID_DATEFORMAT_CHAR_PATTERN + "+" , "\\\\S+" ) ; result = result . replaceAll ( Pattern . quote ( "." ) , "\\\\." ) ; return result ; }
helper method that will convert timestamp format to a pattern
