[Top][All Lists]

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

Re: smiley regexp problem

From: Lennart Borgman
Subject: Re: smiley regexp problem
Date: Mon, 21 Mar 2005 14:22:59 +0100

----- Original Message ----- 
From: "Rajsekar" <address@hidden>

> 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".

Oh, I see. I can't find any way to do it. You can perhaps build a larger
[^...] but that is not exactly what you want. BTW the reg exps in perl is a
bit stronger and I believe things like what you want can be done there.

reply via email to

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