Difference between revisions of "Regular Expressions"

From EditPlus Wiki
Jump to: navigation, search
(Deleting spam)
Line 1: Line 1:
 
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]].
 
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]].
 +
[http://www.hornyblog.org/bigtitpatrol/ BigTitPatrol]
 +
[http://www.hornyblog.org/asstraffic/ Asstraffic]
 +
[http://www.hornyblog.org/allinternal/ Allinternal]
 +
[http://www.hornyblog.org/creampiesurprise/ CreampieSurprise]
 +
[http://www.hornyblog.org/spermswap/ Spermswap]
 +
[http://www.hornyblog.org/mrchewsasianbeaver/ MrChewsAsianBeaver ]
 +
[http://www.hornyblog.org/adultfreindfinder/ AdultFreindFinder  ]
 +
[http://www.hornyblog.org/givemepink/ GiveMePink  ]
 +
[http://www.hornyblog.org/fastsize/ FastSize  ]
 +
[http://www.hornyblog.org/bigmouthfuls/ BigMouthfuls  ]
 +
[http://www.hornyblog.org/tugjobs/ TugJobs  ]
 +
[http://www.itsporn.net/asstraffic/ Asstraffic]
 +
[http://www.itsporn.net/allinternal/ Allinternal]
 +
[http://www.itsporn.net/givemepink/ GiveMePink  ]
 +
[http://www.itsporn.net/spermswap/ Spermswap]
  
 
  Note: EditPlus only supports [[http://en.wikipedia.org/wiki/POSIX POSIX]] Regular Expressions, not [[http://en.wikipedia.org/wiki/PCRE PCRE]] (Perl-Compatible Regular Expressions),
 
  Note: EditPlus only supports [[http://en.wikipedia.org/wiki/POSIX POSIX]] Regular Expressions, not [[http://en.wikipedia.org/wiki/PCRE PCRE]] (Perl-Compatible Regular Expressions),

Revision as of 01:04, 23 January 2006

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. BigTitPatrol Asstraffic Allinternal CreampieSurprise Spermswap MrChewsAsianBeaver AdultFreindFinder GiveMePink FastSize BigMouthfuls TugJobs Asstraffic Allinternal GiveMePink Spermswap

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

fast(er|est)

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)( [^>]*)?(/?)>

Matches:

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

Does not match:

<blinking>

<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:

<\1span\3\4>