Re: [R] Grabbing numbers inside a character string

2013-08-14 Thread Simon Zehnder
Thomas, se ?sub and regular expression. That should make it. Further, see the package gsubfn Best Simon On Aug 14, 2013, at 2:14 PM, Thomas wrote: > I have a string that contains something like: > > ...verified email at neu.eduCited by > 99853 > and I'd like to extract the number next to

Re: [R] Grabbing numbers inside a character string

2013-08-14 Thread arun
Hi, Try: a1<- "...verified email at neu.eduCited by 99853 To: r-help@r-project.org Cc: Sent: Wednesday, August 14, 2013 8:14 AM Subject: [R] Grabbing numbers inside a character string I have a string that contains something like: ...verified email at neu.eduCited by 99853https://stat.ethz.ch/ma