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

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

Re: what means "\\s-" used as a regexp?


From: Eli Zaretskii
Subject: Re: what means "\\s-" used as a regexp?
Date: Sat, 05 Aug 2006 15:19:14 +0300

> From: stefano.sabatini-lala@poste.it
> Date: 5 Aug 2006 04:38:51 -0700
> 
> I recently found in some code the use of "\\s-". Documentation
> appearantly said nothing on it.

It does on my system:

    `\sC'
         matches any character whose syntax is C.  Here C is a character
         that designates a particular syntax class: thus, `w' for word
         constituent, `-' or ` ' for whitespace, `.' for ordinary
         punctuation, etc.  *Note Syntax::.

> So it seems "\\s-" match only the space.

Yes.




reply via email to

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