upvote
Regular expressions are probably not enough for parsing formulas (depending of course on the exact task given), they usually are at least a context free language.
reply