I have some strings and I am trying to extract the third number that appears in it (in R). This is an example string, all of them have the same pattern:
string = "Speaks 2 times (1%) for a total of 34 words (1%)."
I have been able to get the first number with str_extract(string, "[0-9]+")
But I have no idea on how to take only the third (the number of words).
Any help would be gratly appreciated!