all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regex to match "define ABC-123-xyz"
@ 2010-10-01 12:10 Gary
  2010-10-01 12:18 ` Deniz Dogan
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Gary @ 2010-10-01 12:10 UTC (permalink / raw)
  To: help-gnu-emacs

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_-]+

(that is, match the string "define", followed by a single space,
followed by some string consisting of letters and numbers plus "_" and
"-") which works except... 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. Kind of
confusing. What have I done wrong, please?




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-10-05  6:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.0.1285935054.30433.help-gnu-emacs@gnu.org>
2010-10-01 12:20 ` Regex to match "define ABC-123-xyz" Marc Mientki
2010-10-01 12:26 ` David Kastrup
2010-10-01 12:10 Gary
2010-10-01 12:18 ` Deniz Dogan
2010-10-01 13:45   ` Gary
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.