News for hackers. Stuff that matters.
Re:MSVC's implementation of the C++ Standard Library by Mathnerd314 on Monday September 16, 2019 @10:30PM (#20990673)
https://github.com/microsoft/STL/blob/master/stl/inc/regex#L... is the code. Looks pretty simple, check if it matches the backreferences and error/continue.

The handling of repetition is more revealing, it doesn't appear to have "states" at all but rather is just the usual backtracking: https://github.com/microsoft/STL/blob/master/stl/inc/regex#L...

So the "NFA" is really an AST for the regex rather than an automaton based on Thompson's algorithm or similar.

There are no comments on this comment yet.