[Top][All Lists]

[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 (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 ()
  ( if (re-search-forward "\\S-" (line-end-position) 't)

(eq t 't) => t

Boy, nothing is what it seems with emacs :-)


reply via email to

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