[Top][All Lists]

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

Re: how to find " on string

From: Eric Abrahamsen
Subject: Re: how to find " on string
Date: Tue, 16 Sep 2014 20:30:59 +0800
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

Renato Pontefice <address@hidden> writes:

> ok, with this elisp,
> (defun my-working-code ()
>   "Some really useful thing."
>   (interactive)
>   (while (and (not (eobp))
>               (search-forward "[-" nil 'move))
>     (skip-chars-forward "A-Z")
>     (unless (looking-at "-]")
>       (message "Problem found, please fix and hit C-M-c to continue")
>       (recursive-edit)))) I can find for all I need to search.
> I look for many char that I'm looking for.
> I've added some char ( (skip-chars-forward "A-Z_\\(0-9\)"))
> I would also look for ", but I can't find the char that indicate that. Wich 
> one is it?

Probably just an escaped double-quote: \"

Also, your skip-chars-forward looks funny, you've double-backslashed the
opening parenthesis but single-backslashed the closing, while according to
the docstring of skip-chars-forward you probably need neither: A-Z0-9_\"
might be all you need. Try that and see.


reply via email to

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