public void searchContacts(String name){
		String first, last, num, email;
		for(Contacts aContact:contacts){
			
			first = aContact.firstName;
			last = aContact.lastName;
			num = aContact.phoneNum;
			email = aContact.email;
			
		    Pattern pattern = Pattern.compile("("+name+")+");
		    Matcher matchFirst = pattern.matcher(first);
		    Matcher matchLast = pattern.matcher(last);
			
			if(matchFirst.find()||matchLast.find()){
				System.out.print(last+","+first+ "\t|"+num+"\t|"+email+"\n");
			}
			else{
				System.out.println("No record found.");
			}
			
		}
	}