A lexer can be implemented in any number of ways. Using regular expressions is one of the hardest/slowest.

I say to look in the opposite direction, towards finite automata , especially if you are interested in only one language.

Regards