Re: [R] end of string in a character class in grep

2015-03-11 Thread Prof Brian Ripley
On 11/03/2015 10:31, Bob O'Hara wrote: Hi! I'm trying to persuade R's regular expressions to do what I want. I This is not "R's regular expressions" , but the world's regular expressions. have a vector of strings which are names of variables, some of which are elements of strings. I want to

[R] end of string in a character class in grep

2015-03-11 Thread Bob O'Hara
Hi! I'm trying to persuade R's regular expressions to do what I want. I have a vector of strings which are names of variables, some of which are elements of strings. I want to reformat all of the variables into a list, so (for example) beta[1] and beta[2] would be a vector in the list. Where I'm