I have used the example from http://www.regular-expressions.info/examples.html to validate the following code
while [[ ! $name =~ ^[a-Z][ \t][a-Z]. ]]; do
echo "Please enter your Firstname and Surname e.g Joe Bloggs" # (a)Ask for NAME,TELEPHONE NUMBER,DOB #
read name
echo
done
I am quite simply looking to ensure user enters first and second name with a space any help would be greatly appreciated!
=~is correct.