Selective Execution of Tasks in Task Group Depending Upon the Type of Input Entered in a Particular InputField

Hi, is there any way that we can find out if a particular text entered by a user is a mobile number or an email address in an input field and based on that we can execute respective tasks?