I already have a function to check for a valid e-mail address using regular expressions, but I had written it awhile ago when I was still familiar with them.

Now I need one to check for a valid username. The username can only have letters, numbers, underscores (_), spaces, and a single period.

It has to start with a letter. It cannot have consecutive spaces (2 or more in a row).

Can someone help me?