My object returns to me - from Log.d ("FormattedDate", Object.getDOB ());
if (!Object.getDOB().matches("[^-]*")) { txtDOB.setText(Object.getDOB()); } else { txtDOB.setText("-"); }
I check if my Object.getDOB () matches with - and then shows emptry lines, but this regExp does not work.
source share