[R] phone number extraction
R. Michael Weylandt
michael.weylandt at gmail.com
Fri Apr 27 12:21:26 CEST 2012
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 <antonyishere at gmail.com> wrote:
> 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 help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list