[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regular expression search
From: |
Kevin Rodgers |
Subject: |
Re: Regular expression search |
Date: |
Thu, 02 Nov 2006 11:49:21 -0700 |
User-agent: |
Thunderbird 1.5.0.7 (Windows/20060909) |
[Please don't top-post.]
vb wrote:
thank you for your explanation. The [[:print:]] notation didn't quite work
either, but following your suggestion I tried \\S- and it worked.
Ah, the [:foo:] character classes were introduced in Emacs 22.
(defun vb-first-printable ()
(interactive)
(beginning-of-line)
( if (re-search-forward "\\S-" (line-end-position) 't)
(backward-char)
)
)
(eq t 't) => t
Boy, nothing is what it seems with emacs :-)
?
--
Kevin