* Regex reference
@ 2010-02-04 17:59 Tom Dye
2010-02-04 18:20 ` Joost Kremers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Tom Dye @ 2010-02-04 17:59 UTC (permalink / raw)
To: help-gnu-emacs
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).
All the best,
Tom
--
Tom Dye
T. S. Dye & Colleagues, Archaeologists, Inc.
Honolulu, Hawai`i
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regex reference
2010-02-04 17:59 Regex reference Tom Dye
@ 2010-02-04 18:20 ` Joost Kremers
2010-02-04 19:15 ` Drew Adams
[not found] ` <mailman.700.1265310996.14305.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Joost Kremers @ 2010-02-04 18:20 UTC (permalink / raw)
To: help-gnu-emacs
Tom Dye wrote:
> 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).
M-x re-builder might be of service.
(see the documentation in the file re-builder.el.)
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Regex reference
2010-02-04 17:59 Regex reference Tom Dye
2010-02-04 18:20 ` Joost Kremers
@ 2010-02-04 19:15 ` Drew Adams
[not found] ` <mailman.700.1265310996.14305.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2010-02-04 19:15 UTC (permalink / raw)
To: 'Tom Dye', help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Regex reference
[not found] ` <mailman.700.1265310996.14305.help-gnu-emacs@gnu.org>
@ 2010-02-04 22:20 ` Tom Dye
0 siblings, 0 replies; 4+ messages in thread
From: Tom Dye @ 2010-02-04 22:20 UTC (permalink / raw)
To: help-gnu-emacs
On 2010-02-04 09:15:44 -1000, "Drew Adams" <drew.adams@oracle.com> said:
> 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.
Thanks to Drew and Joost for references in 3 media: emacs, Internet,
and print. I really appreciate your help.
Tom
--
Tom Dye
T. S. Dye & Colleagues, Archaeologists, Inc.
Honolulu, Hawai`i
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-04 22:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 17:59 Regex reference Tom Dye
2010-02-04 18:20 ` Joost Kremers
2010-02-04 19:15 ` Drew Adams
[not found] ` <mailman.700.1265310996.14305.help-gnu-emacs@gnu.org>
2010-02-04 22:20 ` Tom Dye
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.