Re: [R] phone number extraction

2012-04-27 Thread R. Michael Weylandt
What is a "verbatim"? This came up three days ago on this very list: https://stat.ethz.ch/pipermail/r-help/2012-April/310815.html The short answer is that you need this regex: pat <- "[-0-9]{10,12}" Michael On Fri, Apr 27, 2012 at 1:23 AM, antony wrote: > Hi, > > How can I extract the phone nu

[R] phone number extraction

2012-04-26 Thread antony
Hi, How can I extract the phone numbers( consecutive 10 digits or in a pattern like 3digits-3digits-4digits) from a verbatim? Thanks in advance for any help... Antony -- View this message in context: http://r.789695.n4.nabble.com/phone-number-extraction-tp4591802p4591802.html Sent from the R h