Write a program that reads a text and removes all extra spaces. The program must replace all repeating spaces and tabulations between words with a single space character (' ').
Use the provided template. Please, use regular expressions to solve the task.