unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Rajsekar <rajsekar@cse.iitm.ernet.in>
Cc: emacs-devel@gnu.org
Subject: Re: smiley regexp problem
Date: Mon, 21 Mar 2005 17:42:27 +0530	[thread overview]
Message-ID: <m3y8churis.fsf@rajsekar.pc> (raw)
In-Reply-To: <13b1f5a13aeafb.13aeafb13b1f5a@net.lu.se> (LENNART BORGMAN's message of "Mon, 21 Mar 2005 11:47:59 +0100")

LENNART BORGMAN <lennart.borgman.073@student.lu.se> 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 `:-)' 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".


-- 
    Rajsekar Manokaran
    IIT Madras

  reply	other threads:[~2005-03-21 12:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21 10:47 smiley regexp problem LENNART BORGMAN
2005-03-21 12:12 ` Rajsekar [this message]
2005-03-21 13:22   ` Lennart Borgman
2005-03-21 13:49   ` Stefan Monnier
2005-03-21 19:53     ` Rajsekar
  -- strict thread matches above, loose matches on Subject: below --
2005-03-17 11:55 Rajsekar
2005-03-20 21:23 ` Rajsekar
2005-03-20 21:48   ` David Kastrup
2005-03-21  8:06     ` Rajsekar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y8churis.fsf@rajsekar.pc \
    --to=rajsekar@cse.iitm.ernet.in \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).