regex_search is not matching "ter" in "Computer Computer" when I'm using following code -
cout << regex_search(string("Computer Computer"), regex("ter"));
The above code gives me 0, whereas there obviously is "ter" in the subject. So what is going on here. I know PHP's regex matches the substring just fine, but whats wrong here?
Aucun commentaire:
Enregistrer un commentaire