[R] regexpr help (match.length=0)

2010-06-01 Thread McGehee, Robert
R-help, Sorry if this is more of a regex question than an R question. However, help would be appreciated on my use of the regexpr function. In the first example below, I ask for all characters (a-z) in 'abc123'; regexpr returns a 3-character match beginning at the first character.

Re: [R] regexpr help (match.length=0)

2010-06-01 Thread Erik Iverson
McGehee, Robert wrote: R-help, Sorry if this is more of a regex question than an R question. However, help would be appreciated on my use of the regexpr function. In the first example below, I ask for all characters (a-z) in 'abc123'; regexpr returns a 3-character match beginning at the first

Re: [R] regexpr help (match.length=0)

2010-06-01 Thread Matt Shotwell
On Tue, 2010-06-01 at 16:43 -0400, Erik Iverson wrote: McGehee, Robert wrote: R-help, Sorry if this is more of a regex question than an R question. However, help would be appreciated on my use of the regexpr function. In the first example below, I ask for all characters (a-z) in

Re: [R] regexpr help (match.length=0)

2010-06-01 Thread Joris Meys
Dear all, It sounds as if regexp works according to the same rules as Perl, very nicely explained in: http://blob.perl.org/books/beginning-perl/3145_Chap05.pdf Yet, I couldn't help but wonder if there are also differences in behaviour. I couldn't find any yet, but there must be some. Anybody