unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "sandro.dentella" <sandro@e-den.it>
Subject: Re: regexp match failure
Date: 22 Nov 2006 10:50:07 -0800	[thread overview]
Message-ID: <1164221407.521343.172240@m73g2000cwd.googlegroups.com> (raw)
In-Reply-To: <mailman.999.1164214909.2155.help-gnu-emacs@gnu.org>


> `\S' is not a valid regexp, it needs a following syntax code.  And since
> you apparently want to match characters which *are* letters rather than
> those which are *not*, `\s' is the appropriate construct with the `w'
> code: "^\\sw+:"

ok, thanks for pointing this out, I'm just too used to perl/python
regexp that I passed over it


> Inside of the `[...]' construct, backslash constructs are not special
> (RTFM).  But in Emacs 22 you can do this: "^[[:alnum:]]+:"

I ended up using \\S-+ to catch also the '-' char.

Thanks again
sandro
*:-)

      parent reply	other threads:[~2006-11-22 18:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-22 14:46 regexp match failure sandro.dentella
2006-11-22 16:59 ` Kevin Rodgers
     [not found] ` <mailman.999.1164214909.2155.help-gnu-emacs@gnu.org>
2006-11-22 18:50   ` sandro.dentella [this message]

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=1164221407.521343.172240@m73g2000cwd.googlegroups.com \
    --to=sandro@e-den.it \
    /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.
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).