Stefan Monnier <[EMAIL PROTECTED]> 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"
> 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
>
- Original Message -
From: "Rajsekar" <[EMAIL PROTECTED]>
> 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 "smi
LENNART BORGMAN <[EMAIL PROTECTED]> 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 `:-)
> >>> 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,
...
> > Why don't you match "laugh" first, and only look for
David Kastrup <[EMAIL PROTECTED]> writes:
> Rajsekar <[EMAIL PROTECTED]> writes:
>
>> Rajsekar <[EMAIL PROTECTED]> writes:
>>
>>> I want to setup the smileys similar to gaim.
>>> So I put
>>>
>>> "\\(:)\\)\\W" for smile.
>>> and
>>> "\\(:))\\)\\W" for laugh.
>>>
>>> The problem is
Rajsekar <[EMAIL PROTECTED]> writes:
> Rajsekar <[EMAIL PROTECTED]> 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 no
Rajsekar <[EMAIL PROTECTED]> 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 [^)] b
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