Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Regexp replace a la vim for sublime
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
regexpreplace.py

README.md

Sublime Regexp Replace Plugin

This plugin is an attempt to have a find/replace tool that uses regular expressions.

Instructions

Install this repository in your Packages/ directory, or using the package control plugin.

Configure a keyboard shortcut to the command regexp_replace_window.

When run, the command will display an input window. Start typing your regexp. You will see the matches displayed on the screen as you type.

When you type enter, the window disappears and a new input window appears ; you can type here your replacement expression.

You can use grouping with parentheses : to have what you matched in the replacement, use python's groups: {1}, {2}, ...

Right now, there is no support for named groups, but if there is demand, it might just be done.

Something went wrong with that request. Please try again.