Error Attempting to Use the Google RE2 Library to Find Regex Matches within a String Buffer in C++
I’m currently using the Google RE2 library in C++ to find regex matches within a certain chunk of a file. I’m required to read 8192 bytes of a file at a time, which is why I used the read() function from the ifstream library. I haven’t had issues with that, but regardless of any matches that might be present in the text (verified from online testing at this link), my program does not print any matches at all. Wondering what the issue might be, but so far I’ve tried the following: