From: Marco Date: 2007-12-26T16:55:05+09:00 Subject: Index of the n-th occurrence Hi, some newbie questions... 1) How can I obtain all the indices of the occurrences of a pattern in a string (and not only the index of the first one using "index")? And the index of the n-th occurrence? 2) What's the simplest way to select elements of a vector,on the basis of a condition on a second vector of the same length? Thanks, Marco