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

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

Re: detect if line has only white space?


From: LEE Sau Dan
Subject: Re: detect if line has only white space?
Date: 13 Nov 2003 14:47:23 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "marc0" == marc0  <marc0@autistici.org> writes:

    marc0> Miguel Frasson on 10 Nov 2003 18:42:56 퍝 writes:
    >> I would like to have a elisp function that detects if the
    >> current line contains only white space. Some idea?

    marc0> matching the current line content with the regexp ^[ ]*$ ?

I've just checked and my Emacs (21.2.1) support the posix class syntax
in regex.  So, the above would be better written as:

        ^[[:space:]]*$


-- 
Lee Sau Dan                     李守敦(Big5)                    ~{@nJX6X~}(HZ) 

E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee


reply via email to

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