From: michael@cadilhac.name (Michaël Cadilhac)
Cc: help-gnu-emacs@gnu.org
Subject: Re: non-greedy regexp
Date: Mon, 23 Oct 2006 15:52:22 +0200 [thread overview]
Message-ID: <87fydfcf6x.fsf@lrde.org> (raw)
In-Reply-To: <20061023134927.14377.qmail@web27209.mail.ukl.yahoo.com> (Robert Pontisso's message of "Mon\, 23 Oct 2006 14\:49\:27 +0100 \(BST\)")
[-- Attachment #1.1: Type: text/plain, Size: 843 bytes --]
Robert Pontisso <rpontisso@yahoo.co.uk> writes:
> Hi. I've been having difficulty finding a non-greedy regular
> expression to match a single instance of an xml-type tag pair in
> a line. Given a line with several instances of <foo>...</foo>, is
> there a version of <foo>.*</foo> that won't match everything between
> the beginning of the first pair and closing of the last pair?
Is «<foo>.*?</foo>» what you're looking for?
--
/!\ My mail address changed, please update your files accordingly.
| Michaël `Micha' Cadilhac | Si les religions etaient aussi tole- |
| Epita/LRDE Promo 2007 | rantes qu'elles le pretendent, il y |
| http://michael.cadilhac.name | a longtemps qu'il n'y en aurait plus |
`-- - JID: micha@amessage.be --' -- Moustic - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-10-23 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-23 13:49 non-greedy regexp Robert Pontisso
2006-10-23 13:52 ` Michaël Cadilhac [this message]
[not found] <mailman.154.1161611374.27805.help-gnu-emacs@gnu.org>
2006-10-23 13:57 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fydfcf6x.fsf@lrde.org \
--to=michael@cadilhac.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.
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.