I want to validate an email address using a state machine. I know there are other ways to do it like using regular expression, but I want to know can it be done using a state machine.
Any sample example or a good pointer in right direction will be appreciated