Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Gabor Grothendieck
t;> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Gabor Grothendieck >> Sent: Tuesday, June 09, 2009 11:27 AM >> To: Greg Snow >> Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann >> Subject: Re: [R] using

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Gabor Grothendieck
ehalf Of Gabor Grothendieck >> Sent: Tuesday, June 09, 2009 11:27 AM >> To: Greg Snow >> Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann >> Subject: Re: [R] using regular expressions to retrieve a digit-digit- >> dot structure from a string >> >> Wacek al

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Greg Snow
On Behalf Of Gabor Grothendieck > Sent: Tuesday, June 09, 2009 11:27 AM > To: Greg Snow > Cc: Wacek Kusnierczyk; r-help@r-project.org; Mark Heckmann > Subject: Re: [R] using regular expressions to retrieve a digit-digit- > dot structure from a string > > Wacek already mentioned

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Gabor Grothendieck
un...@r-project.org [mailto:r-help-boun...@r- >> project.org] On Behalf Of Wacek Kusnierczyk >> Sent: Tuesday, June 09, 2009 1:05 AM >> To: Gabor Grothendieck >> Cc: r-help@r-project.org; Mark Heckmann >> Subject: Re: [R] using regular expressions to retrieve a di

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Stavros Macrakis
On Tue, Jun 9, 2009 at 7:44 AM, Mark Heckmann wrote: > Thanks for your help. Your answers solved the problem I posted and that is > just when I noticed that I misspecified the problem ;) > My problem is to separate a German texts by sentences. Unfortunately I > haven't found an R package doing th

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Greg Snow
Mark Heckmann > Subject: Re: [R] using regular expressions to retrieve a digit-digit- > dot structure from a string > > Gabor Grothendieck wrote: > > On Mon, Jun 8, 2009 at 7:18 PM, Wacek > > Kusnierczyk wrote: > > > >> Gabor Grothendieck wrote: > >> >

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Gabor Grothendieck
wartz [mailto:marc_schwa...@me.com] > Gesendet: Dienstag, 9. Juni 2009 14:17 > An: Mark Heckmann > Cc: r-help@r-project.org; 'Gabor Grothendieck'; > waclaw.marcin.kusnierc...@idi.ntnu.no > Betreff: Re: AW: [R] using regular expressions to retrieve a digit-digit-dot > struct

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Mark Heckmann
21 - 1614618 www.markheckmann.de R-Blog: http://ryouready.wordpress.com -Ursprüngliche Nachricht- Von: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Gesendet: Dienstag, 9. Juni 2009 12:48 An: Wacek Kusnierczyk Cc: Mark Heckmann; r-help@r-project.org Betreff: Re: [R] using regular ex

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Mark Heckmann
- Von: Marc Schwartz [mailto:marc_schwa...@me.com] Gesendet: Dienstag, 9. Juni 2009 14:17 An: Mark Heckmann Cc: r-help@r-project.org; 'Gabor Grothendieck'; waclaw.marcin.kusnierc...@idi.ntnu.no Betreff: Re: AW: [R] using regular expressions to retrieve a digit-digit-dot structure from a

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Marc Schwartz
On Jun 9, 2009, at 6:44 AM, Mark Heckmann wrote: Hey all, Thanks for your help. Your answers solved the problem I posted and that is just when I noticed that I misspecified the problem ;) My problem is to separate a German texts by sentences. Unfortunately I haven't found an R package doing

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Wacek Kusnierczyk
Gabor Grothendieck wrote: > On Tue, Jun 9, 2009 at 3:04 AM, Wacek > Kusnierczyk wrote: > >> Gabor Grothendieck wrote: >> >>> On Mon, Jun 8, 2009 at 7:18 PM, Wacek >>> Kusnierczyk wrote: >>> >>> Gabor Grothendieck wrote: > Try this. See ?regex for more. >>

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Gabor Grothendieck
On Tue, Jun 9, 2009 at 3:04 AM, Wacek Kusnierczyk wrote: > Gabor Grothendieck wrote: >> On Mon, Jun 8, 2009 at 7:18 PM, Wacek >> Kusnierczyk wrote: >> >>> Gabor Grothendieck wrote: >>> Try this.  See ?regex for more. > x <- 'This happened in the 21. century." (the dot behind

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-09 Thread Wacek Kusnierczyk
Gabor Grothendieck wrote: > On Mon, Jun 8, 2009 at 7:18 PM, Wacek > Kusnierczyk wrote: > >> Gabor Grothendieck wrote: >> >>> Try this. See ?regex for more. >>> >>> >>> x <- 'This happened in the 21. century." (the dot behind 21 is' regexpr("(?![0-9]+)[.]", x, perl = TRUE)

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Gabor Grothendieck
On Mon, Jun 8, 2009 at 7:18 PM, Wacek Kusnierczyk wrote: > Gabor Grothendieck wrote: >> Try this.  See ?regex for more. >> >> >>> x <- 'This happened in the 21. century." (the dot behind 21 is' >>> regexpr("(?![0-9]+)[.]", x, perl = TRUE) >>> >> [1] 24 >> attr(,"match.length") >> [1] 1 >> > > yes,

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Wacek Kusnierczyk
Gabor Grothendieck wrote: > Try this. See ?regex for more. > > >> x <- 'This happened in the 21. century." (the dot behind 21 is' >> regexpr("(?![0-9]+)[.]", x, perl = TRUE) >> > [1] 24 > attr(,"match.length") > [1] 1 > yes, but gregexpr('(?![0-9]+)[.]', 'a. 1. a1.', perl=TRUE)

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Marc Schwartz
On Jun 8, 2009, at 12:34 PM, Marc Schwartz wrote: On Jun 8, 2009, at 9:15 AM, Mark Heckmann wrote: Hi, i need to recognize itemization structures in strings which follow the format: "digit-digit-dot" like e.g. 1. 2. 19. 211. Given the string " This happened in the 21. century."

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Gabor Grothendieck
Try this. See ?regex for more. > x <- 'This happened in the 21. century." (the dot behind 21 is' > regexpr("(?![0-9]+)[.]", x, perl = TRUE) [1] 24 attr(,"match.length") [1] 1 On Mon, Jun 8, 2009 at 10:15 AM, Mark Heckmann wrote: > Hi, > > > > i need to recognize itemization structures in string

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Marc Schwartz
On Jun 8, 2009, at 9:15 AM, Mark Heckmann wrote: Hi, i need to recognize itemization structures in strings which follow the format: "digit-digit-dot" like e.g. 1. 2. 19. 211. Given the string " This happened in the 21. century." (the dot behind 21 is used in German instead of 21st

Re: [R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Henrique Dallazuanna
Try this: x <- "This happened in the 21. century." gregexpr("[[:digit:]]\\.", x) This returns the position of the digit-dot in the string. On Mon, Jun 8, 2009 at 11:15 AM, Mark Heckmann wrote: > Hi, > > > > i need to recognize itemization structures in strings which follow the > format: "digit

[R] using regular expressions to retrieve a digit-digit-dot structure from a string

2009-06-08 Thread Mark Heckmann
Hi, i need to recognize itemization structures in strings which follow the format: "digit-digit-dot" like e.g. 1. 2. 19. 211. Given the string " This happened in the 21. century." (the dot behind 21 is used in German instead of 21st) I want know where the dots are but I do not want t