Difference between revisions of "Regular expression syntax (unsupported)"

From EditPlus Wiki
Jump to: navigation, search
(Deleting Spam)
Line 2: Line 2:
  
  
My life's been basically dull these days.
+
==Operators and Syntax Not Supported in EditPlus==
I haven't gotten much done these days.
+
; ''foo''{''num''} : match ''foo'' exactly ''num'' times
Today was a complete loss. 
+
; ''foo''{''min'', ''max''} : match ''foo'' at least ''min'' and at most ''max'' times, both optional
 
+
; \a : 0x07, BEL
[http://dave.editthispage.com/discuss/msgReader$188 mature teen young boy] |
+
; \f : 0x0C, formfeed
[http://dave.editthispage.com/discuss/msgReader$198 mature thumbs] |
+
; \r : 0x0D, carriage return, see \n
[http://dave.editthispage.com/discuss/msgReader$185 mature lesbian seduces young girl] |
+
; \e : 0x1B, ESC
[http://dave.editthispage.com/discuss/msgReader$191 mature pantyhose]
+
; \x''foo'' : 0x''foo'', hexadecimal character reference
 +
; \c''foo'' : 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]
 +
; <nowiki>[[:alpha:]], [[:lower:]], [[:upper:]], [[:alnum:]], [[:digit:]], [[:xdigit:]], [[:punct:]], [[:graph:]], [[:print:]], [[:blank:]], [[:space:]]</nowiki> : 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
 +
; (?<nowiki>:</nowiki>''foo'') : grouping, non-referencable
 +
; (?i''foo''), (?m''foo''), (?s''foo''), (?x''foo'') : inline modifiers
 +
; (?R) : recursive pattern
 +
; (?#''foo'') : comment

Revision as of 10:09, 15 June 2007

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