From: Gary <help-gnu-emacs@garydjones.name>
To: help-gnu-emacs@gnu.org
Subject: Re: Regex to match "define ABC-123-xyz"
Date: Fri, 01 Oct 2010 15:45:04 +0200 [thread overview]
Message-ID: <i84ol0$4ga$2@dough.gmane.org> (raw)
In-Reply-To: AANLkTi=ouNuKycHhMFTAO8a3bHUVdTTS5h5NuKF3ZK9=@mail.gmail.com
Deniz Dogan wrote:
> 2010/10/1 Gary:
>> I'm having trouble with this, to say the least. "Obviously" the parts
>> after the define aren't fixed, either in content or position. What I
>> have tried is
>>
>> define [A-Za-z0-9_-]+
...
>> it doesn't match the numeric part(s). I can see this in the regexp
>> builder, and, since I am attempting to match part of a programming
>> language syntax, in source code.
> Pardon me if I misunderstood, but it works perfectly fine for me in
> re-builder. Are you saying it works for you in re-builder but not when
> actually using it in code?
It now works okay in the RE-Builder for me too, but not in the mode I
have written. I imagine the REs for different parts of the language are
getting in the way of each other somewhere. I will try removing some
until I get something that works and go on from there...
next prev parent reply other threads:[~2010-10-01 13:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 12:10 Regex to match "define ABC-123-xyz" Gary
2010-10-01 12:18 ` Deniz Dogan
2010-10-01 13:45 ` Gary [this message]
2010-10-01 15:23 ` rasmith
2010-10-05 6:47 ` Gary
2010-10-01 12:48 ` Tyler Smith
2010-10-01 13:42 ` Gary
2010-10-01 12:58 ` Tim Visher
2010-10-01 13:59 ` Erik L. Arneson
[not found] ` <mailman.4.1285942809.2643.help-gnu-emacs@gnu.org>
2010-10-01 16:04 ` rustom
[not found] <mailman.0.1285935054.30433.help-gnu-emacs@gnu.org>
2010-10-01 12:20 ` Marc Mientki
2010-10-01 12:26 ` David Kastrup
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='i84ol0$4ga$2@dough.gmane.org' \
--to=help-gnu-emacs@garydjones.name \
--cc=help-gnu-emacs@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.
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).