Apologizes if this is blindingly easy or already in the forums, but I decided to ask about it because I have been searching/googling all day without any success. I am trying to get a regex expression to pass, a very, very simple test, without luck.
Here is an example of what I am trying to do:
I have tried a bunch of different variations of the pattern, I have been trying different variations all day, anything and everything that google turned up, but what I am trying to do is very simple, just check if there exists in a string, at least one letter. regex_search() returns false for every pattern I have tried. I feel like I am missing something fundamental here, so any insight would be amazing. Thank you!
No, I don't think that is it. It compiles just fine, with the -std=c++11 flag. I am using version 4.8.4, came with Ubuntu. It compiles fine and runs without error, but returns false. So the above program prints "Failed".
gcc didn't implement regex until version 5.04.9. Earlier versions had non-functioning stubs for some of regex functions, which compiled (quite misleadingly)
Oh wow, ok. thanks!!! I just totally assumed that if it was compiling and running without throwing a runtime error that it supported regex! Thanks for pointing me in the right direction.