Dear R People: Could someone recommend a good reference on regular expressions, please? Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
On Fri, Mar 18, 2011 at 09:45:57PM -0500, Erin Hodgess wrote:> Dear R People: > > Could someone recommend a good reference on regular expressions, please? > ...Mastering Regular Expressions; Friedl, Jeffrey E. F.; ISBN 9780596528126. Many of the O'Reilly books (as this one) may be purchased in an electronic format , which is often slightly less expensive, can be faster to arrive, and is readily amenable (in the case of O'Reilly, at least) to low-cost (or free) electronic delivery of updates. That said, another approach would be to run Perl in debug mode against some (Perl) script, and use the debugger to see exactly what matches (and what happens when you change something). You might able to do this with R's browser() fiunction, at least to some extenr; I confess that I have a great deal more experience with Perl, so I'm more comfortable experimenting in that way using the Perl debugger. (And in any case, Perl is well-known for the facility with which one may use regular expressions in it.) The above are not (intended as) mutually exclusive. Peace, david -- David H. Wolfskill r at catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110318/11502ee0/attachment.bin>
Erin - If you seriously want to learn about regular expressions, I would recommend "Mastering Regular Expressions" by Jeffrey Freidl. (http://oreilly.com/catalog/9781565922570). I don't think there's anything that's more thorough or authoritive. - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley spector at stat.berkeley.edu On Fri, 18 Mar 2011, Erin Hodgess wrote:> Dear R People: > > Could someone recommend a good reference on regular expressions, please? > > Thanks in advance, > Sincerely, > Erin > > > -- > Erin Hodgess > Associate Professor > Department of Computer and Mathematical Sciences > University of Houston - Downtown > mailto: erinm.hodgess at gmail.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. >
On Fri, Mar 18, 2011 at 10:45 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:> Dear R People: > > Could someone recommend a good reference on regular expressions, please?There are links to a number of sites on the gsubfn home page: http://gsubfn.googlecode.com/#REGULAR_EXPRESSION_LINKS -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com