all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jon Oddie <jonxfield@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: extended regexp
Date: Tue, 11 Dec 2012 05:23:07 +0000	[thread overview]
Message-ID: <EBDFB4AC-D55A-42AC-8E0A-EF692FE4B623@gmail.com> (raw)
In-Reply-To: <mailman.191.1355158842.18015.help-gnu-emacs@gnu.org>


>> If there is no extended-regexp functions nor mode avalaible, I may
>> send a feature request for it (the idea would be to have a regexp variable
>> for usual or extended search and replace).  However, do you think someone
>> else might be interested by such a behaviour?
> 
> We'd be happy to use a cleaner regexp syntax, but doing it without
> breaking backward compatibility is tricky, unless you go the
> `rx' route.  E.g. provide a new function/macro (call it `re') which
> converts between your new syntax and the old one.
> 

FWIW, I started work on something like this a while back, called
`pcre2el'[1]. It is a bit misnamed, since the majority of PCRE is too
difficult to support by simple translation to Emacs native regexes,
but it does cover the simple cases.  It also converts the string forms
to `rx' syntax, and extends the RE-Builder to handle these
conversions, so you can use C-c TAB to switch transparently between
PCRE-like, Emacs and rx syntax.



    Jon

[1] https://github.com/joddie/pcre2el




       reply	other threads:[~2012-12-11  5:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.191.1355158842.18015.help-gnu-emacs@gnu.org>
2012-12-11  5:23 ` Jon Oddie [this message]
     [not found] <mailman.923156.1354970579.854.help-gnu-emacs@gnu.org>
2012-12-08 13:52 ` extended regexp damien.thiriet77
     [not found] ` <mailman.14869.1354974731.855.help-gnu-emacs@gnu.org>
2012-12-10 15:05   ` Stefan Monnier

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=EBDFB4AC-D55A-42AC-8E0A-EF692FE4B623@gmail.com \
    --to=jonxfield@gmail.com \
    --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.