I'm trying to use std::regex
to validate some variables from a file in my c++11 project.
For now I need to validate if a string is a valid URL or not. Here is my code: https://godbolt.org/z/4Pn9eYEce
As you see, it works as expected. It returns a 1
.
However, when I run the same code on my server, it returns a 0
.
I really don't know why.
My server is Ubuntu 16.04.4 LTS, and the version of GCC is 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11).
Aucun commentaire:
Enregistrer un commentaire