I have a list of EditText's
that are filled with data returned from the database.
Some have a common text, for example
<EditText
android:id="@+id/edittext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Jon Snow" />
And in other cases it could be a date:
<EditText
android:id="@+id/edittext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="2017-06-20" />
How could I check if the text being displayed in EditText
is a date or other common text? Would a regex solve this?