[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smiley regexp problem
From: |
Rajsekar |
Subject: |
Re: smiley regexp problem |
Date: |
Tue, 22 Mar 2005 01:23:06 +0530 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> 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".
>
> ":-)[^[:word:])]"
>
>
Oh great!
It worked perfect.
Thanks.
--
Rajsekar Manokaran
IIT Madras