Introduced in the RegexEngine topic, NFA engines use backtracking. Backtracking is the action of returning back in the input text and trying another alternative of the regular expression.
Alternatives in a regular expression arise from Alternation and Quantifiers. In an alternation, the engine has to try each possible alternatives provided. With a quantifier, it has to decide whether to try a match or yet another match.
NFA engines applies the following rules when backtracking:
To helps you better understand these concepts, look at these Examples.