There are three different solutions to implement regular expression matching: DFA, NFA and Backtracking. I am looking for examples:
- a regexp, which can be solved with a DFA and the reason, why a DFA is sufficient.
- a regexp, which requires a NFA and the reason why a NFA is necessary.
- a regexp, which requires backtracking and the reason why backtracking is necessary.
A recommendation for some good literature about this topic would be nice, too.