unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Tom Dye'" <tsd@tsdye.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Regex reference
Date: Thu, 4 Feb 2010 11:15:44 -0800	[thread overview]
Message-ID: <DE1962D495BA47AE91B023F56D5CC407@us.oracle.com> (raw)
In-Reply-To: <2010020407591216807-tsd@tsdyecom>

Aloha.

> Aloha all,
> 
> I'm able to use regular expressions in LISP strings fairly regularly 
> for simple situations.  I'd like to get better at this, so that it is 
> easier for me to conceptualize possible solutions to more complex 
> problems.   Can anyone offer either print or on-line references that 
> might help me think about regular expressions in LISP strings more 
> effectively?  I need something more than a concise 
> description of each character, something that will help me find the
> right frame of mind (so to speak).

This might help:

http://www.emacswiki.org/emacs/RegularExpression#LearningRegexps

The more you use regexps in Emacs, the more you will learn about them. Using
them interactively is a great way to practice. 

Many Emacs commands let you use regexps. You can get used to using regexps in
Emacs commands by starting with simple patterns. The important thing is to get
in the practice of using them. And remember that an ordinary string of chars
that does not have any regexp special chars is itself a (very simple) regexp.

If you want to learn more about regexps, including some of the theory, some
background on implementation and algorithms, and some comparison of regexp
features and syntax in different languages, I know of no better book than this -
I (and many others) recommend it strongly.

http://oreilly.com/catalog/9781565922570

Have fun.





  parent reply	other threads:[~2010-02-04 19:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 17:59 Regex reference Tom Dye
2010-02-04 18:20 ` Joost Kremers
2010-02-04 19:15 ` Drew Adams [this message]
     [not found] ` <mailman.700.1265310996.14305.help-gnu-emacs@gnu.org>
2010-02-04 22:20   ` Tom Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DE1962D495BA47AE91B023F56D5CC407@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).