emacs-devel
[Top][All Lists]
Advanced

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

Re: smiley regexp problem


From: Rajsekar
Subject: Re: smiley regexp problem
Date: Mon, 21 Mar 2005 17:42:27 +0530
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux)

LENNART BORGMAN <address@hidden> writes:

>
> Maybe you could add a complemented character set to the first one after the 
> smile (with whatever slashes there are needed to get this to work): [^)] 


The point is about \\W.  \\W matches any character that is not a
word-constituent.  I want `:-)' to become a smile if it is followed by any
of `\\W' but not ')'.  If I put it as "\\(:-?)\\)[^)]", then even strings
like "smile_within:-)strings" also get smileys.  So I am looking for a way
to specify "characters in \\W but no ')' in the language of regexps".


-- 
    Rajsekar Manokaran
    IIT Madras




reply via email to

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