Is it possible to create a program that takes a user\'s input and checks it against a formatted array and then ensures user\'s input complies with this format.