Regular Expressions

From EditPlus Wiki
Revision as of 14:19, 22 January 2006 by (Talk) (Deleting spam)

Jump to: navigation, search

This [[page exists as a resource for regular expressions frequently used in EditPlus. In order to learn more about the particulars of creating a regular expression in EditPlus, see regular expression syntax.

Note: EditPlus only supports [POSIX] Regular Expressions, not [PCRE] (Perl-Compatible Regular Expressions),
which means there are no back-references, no look-aheads, no fancy quantifiers, and no convenient character
group syntax]].  Just your basic ^, $, +, *, ?, [ ], [^ ], syntax.  Also note that +/* are always greedy.

Find various forms of a word


For example: this reg. expression th(is|e|at) will find the words This, The, and That

Find a specific tag

Here is a useful regular expression for dealing with XML or HTML files - it matches an opening, closing or singular blink tag. Simply replace blink with your tag of choice.

<(/?)(blink)( [^>]*)?(/?)>


<blink align="center">
<blink garbage="true"/>

Does not match:


<div style=

To use it in a search and replace (for instance, replace all blink tags with spans) use the following as the replace string: