Re: [R] regexp problem

2011-07-01 Thread David Winsemius
On Jul 1, 2011, at 11:02 AM, Rainer M Krug wrote: Hi I have a question concerning regexp - I want to select with grep all character strings which contain the numbers 11:20 (code below). At the moment I am using [], but that obviously does not work, as it matches each element in the []. Is t

Re: [R] regexp problem

2011-07-01 Thread Rainer M Krug
On Fri, Jul 1, 2011 at 5:08 PM, Gabor Grothendieck wrote: > On Fri, Jul 1, 2011 at 11:02 AM, Rainer M Krug wrote: > > Hi > > > > I have a question concerning regexp - I want to select with grep all > > character strings which contain the numbers 11:20 (code below). > > > > At the moment I am usin

Re: [R] regexp problem

2011-07-01 Thread Gabor Grothendieck
On Fri, Jul 1, 2011 at 11:02 AM, Rainer M Krug wrote: > Hi > > I have a question concerning regexp - I want to select with grep all > character strings which contain the numbers 11:20 (code below). > > At the moment I am using [], but that obviously does not work, as it matches > each element in t

[R] regexp problem

2011-07-01 Thread Rainer M Krug
Hi I have a question concerning regexp - I want to select with grep all character strings which contain the numbers 11:20 (code below). At the moment I am using [], but that obviously does not work, as it matches each element in the []. Is there a way to specify that the regexp should match 11, b

[R] regexp problem (was: Re: publication statistics from Web of Science)

2009-01-15 Thread baptiste auguie
Whoops, it seems I could use some help with regular expressions... Consider the following two functions, creating a search string, and retrieving the content from the url, makeURLsearch <- function(key, dates=c(NULL, NULL)){ base.search <- "http://scholar.google.co.uk/scholar