A cursory look at the documentation for QRegexp
shows that it supports backreferences, while QRegularExpression
makes no mention of it. This would be notable since regular expression matching without backreferences can scale in linear time, while including backreferences scales as exponential time (source [dead link], cached version).
A similar StackOverflow answer also mentions the main differences are in the speed of execution. It would be logical to consider that the new regular expression class could employ a new algorithm, which would allow it to search in linear time, however, I have no direct knowledge of this. Are there any differences similar to the above in the new QRegularExpression
class?