Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danielmartin/regexp-expand

Show the ELisp regular expression at point in rx form.
https://github.com/danielmartin/regexp-expand

emacs emacs-lisp regex regexp regular-expression

Last synced: about 2 months ago
JSON representation

Show the ELisp regular expression at point in rx form.

Awesome Lists containing this project

README

        

# regexp-expand
Show the ELisp regular expression at point in `rx` form.

## Installation

This package requires `xr`, which is available in ELPA/MELPA: `M-x package-install RET xr RET`

Then, clone this repository to your local machine and add the following to your initialization file:

```elisp
(add-to-list 'load-path "")
(require 'regexp-expand)
```

The main entry point of this package is `regexp-expand`, a command that, when the point is inside a regular expression, will replace it temporarily with an equivalent but much more readable `rx` form.

## Demonstration

![Sample usage of regexp-expand](screenshots/sample.gif)