Regular expression syntax (unsupported)

From EditPlus Wiki
Revision as of 10:09, 15 June 2007 by Adam (Talk | contribs) (Deleting Spam)

Jump to: navigation, search

The following page describes some common regular expression syntax/operators not available in EditPlus. Please see Regular expression syntax for supported options and Regular Expressions for examples of regular expressions commonly used in EditPlus.


Operators and Syntax Not Supported in EditPlus

foo{num
match foo exactly num times
foo{min, max
match foo at least min and at most max times, both optional
\a 
0x07, BEL
\f 
0x0C, formfeed
\r 
0x0D, carriage return, see \n
\e 
0x1B, ESC
\xfoo 
0xfoo, hexadecimal character reference
\cfoo 
control-foo
\s 
whitespace character, use [ \t\n]
\S 
non-whitespace character, use [^ \t\n]
\d 
decimal digit, use [0-9]
\D 
not a decimal digit, use [^0-9]
\w 
word character, letter, for English use [A-z]
\W 
non-word character, non-letter, for English use [^A-z]
[[:alpha:]], [[:lower:]], [[:upper:]], [[:alnum:]], [[:digit:]], [[:xdigit:]], [[:punct:]], [[:graph:]], [[:print:]], [[:blank:]], [[:space:]] 
predefined character classes (POSIX)
\b 
word boundary (assertion)
\B 
not a word boundary (assertion)
\A 
subject start (assertion), use ^
\Z 
subject end (assertion), use [\n$]
\z 
subject end (assertion), use $
assertions other than ^ and $ 
parts of patterns that are not added to matches:
(?=foo
positive assertion
(?!foo
negative assertion
(?<=foo), (?<!foo
look-behind assertion
(?>=foo), (?>!foo
look-ahead assertion, once-only sub-pattern
(?(foo)true), (?(foo)true|false
conditional sub-pattern, foo being either the number of a sub-pattern or an assertion
(?:foo
grouping, non-referencable
(?ifoo), (?mfoo), (?sfoo), (?xfoo
inline modifiers
(?R) 
recursive pattern
(?#foo
comment