Vote count:
0
What I am trying to do is very simple, I think but I can't seem to get it to work.
My regex is:
"(?wW)hat is the capitol of (\w*?\s?\w*?)\?"
Which I am hoping will allow in things like "Russia" and "Costa Rica" to be in the capture group. Basically, I want to read in a question such as "what is the capitol of Argentina" and then be able to grab the word "Argentina" even if the sentence has a bunch of other stuff in it.
But I tried it and I entered "what is the capitol of russia?" and it said that string didn't match.
asked 31 secs ago
Aucun commentaire:
Enregistrer un commentaire