Question d’entretien chez Meta

Give an algorithm to parse a regular expression.