From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: smiley regexp problem Date: Mon, 21 Mar 2005 14:22:59 +0100 Message-ID: <002601c52e19$25b053a0$0200a8c0@sedrcw11488> References: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111411723 13780 80.91.229.2 (21 Mar 2005 13:28:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2005 13:28:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 14:28:43 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDMxK-0005fR-AD for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 14:28:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDNEQ-00072R-H4 for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2005 08:46:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DDNDz-0006ve-Or for emacs-devel@gnu.org; Mon, 21 Mar 2005 08:45:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DDNDu-0006sE-1j for emacs-devel@gnu.org; Mon, 21 Mar 2005 08:45:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DDNDs-0006qz-GE for emacs-devel@gnu.org; Mon, 21 Mar 2005 08:45:36 -0500 Original-Received: from [81.228.10.107] (helo=av9-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DDMsM-0001rh-HG; Mon, 21 Mar 2005 08:23:22 -0500 Original-Received: by av9-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id CCB9937EA7; Mon, 21 Mar 2005 14:23:21 +0100 (CET) Original-Received: from smtp2-1-sn4.m-sp.skanova.net (smtp2-1-sn4.m-sp.skanova.net [81.228.10.183]) by av9-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id BD79137E82; Mon, 21 Mar 2005 14:23:21 +0100 (CET) Original-Received: from sedrcw11488 (t1o58p218.telia.com [62.20.164.218]) by smtp2-1-sn4.m-sp.skanova.net (Postfix) with SMTP id B88C737E56; Mon, 21 Mar 2005 14:23:19 +0100 (CET) Original-To: "Rajsekar" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:34882 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34882 ----- Original Message ----- From: "Rajsekar" > 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.