[Top][All Lists]

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

Re: smiley regexp problem

From: David Kastrup
Subject: Re: smiley regexp problem
Date: Sun, 20 Mar 2005 22:48:40 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Rajsekar <address@hidden> writes:

> Rajsekar <address@hidden> writes:
>> I want to setup the smileys similar to gaim.
>> So I put 
>>         "\\(:)\\)\\W" for smile.
>> and
>>         "\\(:))\\)\\W" for laugh.
>> The problem is that :)) also contains a :).  At the same time, i do not
>> want to replace \W with something like [^)] because i lose the advantage of
>> \W (which works based on the current syntax).  I want something like \\W
>> minus the character `('.  Can someone tell me how to achieve this?
> I see from theory that the needed language is still a regexp, yet i
> am not able to express it in the language of regexp.  Is it a
> shortcoming in the language?

Why don't you match "laugh" first, and only look for a smile if no
laugh is can be found?

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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