This package browser is in early development. Mind the rough edges.

emacs-pcre2el

Convert between PCRE, Emacs and rx regexp syntax

pcre2el or rxt (RegeXp Translator or RegeXp Tools) is a utility for working with regular expressions in Emacs, based on a recursive-descent parser for regexp syntax. In addition to converting (a subset of) PCRE syntax into its Emacs equivalent, it can do the following:

  • convert Emacs syntax to PCRE

  • convert either syntax to rx, an S-expression based regexp syntax

  • untangle complex regexps by showing the parse tree in rx form and highlighting the corresponding chunks of code

  • show the complete list of strings (productions) matching a regexp, provided the list is finite

  • provide live font-locking of regexp syntax (so far only for Elisp buffers – other modes on the TODO list).

Installation

Install the latest version of emacs-pcre2el as follows:

guix install emacs-pcre2el

Or install a particular version:

guix install emacs-pcre2el@1.12-0.b4d846d

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.

Badge code

You can use the following badge to inform users of emacs-pcre2el about the latest version available in Guix.

Example HTML:

<a href='https://packages.guix.gnu.org/packages/emacs-pcre2el'><img src='https://packages.guix.gnu.org/packages/emacs-pcre2el/badges/latest-version.svg' alt='Version in GNU Guix'></a>

Example Markdown:

[![Version in GNU Guix](https://packages.guix.gnu.org/packages/emacs-pcre2el/badges/latest-version.svg)](https://packages.guix.gnu.org/packages/emacs-pcre2el)

Example Org:

[[https://packages.guix.gnu.org/packages/emacs-pcre2el][https://packages.guix.gnu.org/packages/emacs-pcre2el/badges/latest-version.svg]]