help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to re-search for ^"*Nanotechnology*"$


From: Mirko
Subject: Re: How to re-search for ^"*Nanotechnology*"$
Date: Wed, 05 Sep 2007 06:18:44 -0700
User-agent: G2/1.0

On Sep 5, 9:13 am, dan...@bigwalter.net (Daniel Jensen) wrote:
> Mirko <mvuko...@nycap.rr.com> writes:
> > My attempt
> > (re-search-forward "\*[a-zA-Z ]+\*")
> > fails.
>
> Remember to use double backslashes in regexp string literals. The
> backslash is an escape character in strings, so you need to use "\\" to
> embed a backslash character in the string.
>
> Or you could use rx, which provides a symbolic regexp syntax:
>
>     (rx "*" (one-or-more (in alpha space)) "*")
>
> Some find it easier to use.
>
> > Also, if you could (please) show me how to use the [:alpha:]
> > construct.
>
> [[:alpha:]]

Thank you Daniel.

I also made some progress.  Most of the mistakes were mine (too
numerous and embarrassing to list here)

Mirko



reply via email to

[Prev in Thread] Current Thread [Next in Thread]