From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: smiley regexp problem Date: Mon, 21 Mar 2005 08:49:17 -0500 Message-ID: <871xa9w1ml.fsf-monnier+emacs@gnu.org> References: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111413673 20212 80.91.229.2 (21 Mar 2005 14:01:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2005 14:01:13 +0000 (UTC) Cc: LENNART BORGMAN , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 15:01:12 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDNSa-0002hy-4k for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 15:00:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDNjg-0007KM-Ju for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 09:18:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDNhD-0006Zn-V3 for emacs-devel@gnu.org; Mon, 21 Mar 2005 09:15:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDNhA-0006YU-PA for emacs-devel@gnu.org; Mon, 21 Mar 2005 09:15:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDNh9-0006Tv-8L for emacs-devel@gnu.org; Mon, 21 Mar 2005 09:15:51 -0500 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDNHS-0003r5-Hq for emacs-devel@gnu.org; Mon, 21 Mar 2005 08:49:18 -0500 Original-Received: from alfajor ([67.71.26.238]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050321134918.WOLK2034.tomts20-srv.bellnexxia.net@alfajor>; Mon, 21 Mar 2005 08:49:18 -0500 Original-Received: by alfajor (Postfix, from userid 1000) id E5C1BD72F3; Mon, 21 Mar 2005 08:49:17 -0500 (EST) Original-To: Rajsekar In-Reply-To: (rajsekar@cse.iitm.ernet.in's message of "Mon, 21 Mar 2005 17:42:27 +0530") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34887 > 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:])]" Stefan