Changes between Version 1 and Version 2 of ICgrepSyntax


Ignore:
Timestamp:
Mar 2, 2015, 8:34:00 AM (5 years ago)
Author:
cameron
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ICgrepSyntax

    v1 v2  
    11== ICgrep Syntax ==
    22
    3 Coming soon!
     3ICgrep supports an extensive regular expression syntax. 
     4
     5
     6== Regular Expression Metacharacters ==
     7
     8 || \a  ||      Match a BELL, \u0007 ||
     9 || \b  ||      Zero-width match at a word boundary: transition between word (\w) and non-word (\W) characters ||
     10 || \B  ||      Zero-width match if the current position is not a word boundary. ||
     11 || \cX ||      Match a control-X character. ||
     12 || \d  ||      Match any character with the Unicode General Category of Nd (Number, Decimal Digit.) ||
     13 || \D  ||      Match any character that is not a decimal digit. ||
     14 || \e  ||      Match an ESCAPE, \u001B. ||
     15 || \f  ||      Match a FORM FEED, \u000C. ||
     16 || \p{Unicode property expression} || Match any character with the specified Unicode property.  ||
     17 || \P{Unicode property expression} || Match any character not having the specified Unicode property. ||
     18 || \s  || Match a white space character.  ||
     19 || \S  || Match a non-white space character.  ||
     20 || \t  || Match a HORIZONTAL TABULATION, \u0009. ||
     21 || \uhhhh || Match the character with the hex codepoint value hhhh. ||
     22 || \Uhhhhhhhh  || Match the character with the 8-digit hex codepoint value hhhhhhhh. ||
     23 || \u{hhh}  || Match the character with the hex code point value hhh (1-6 hex digits) ||
     24 || \w || Match a word character.  ||
     25 || \W || Match a non-word character. ||
     26 || \x{hhh}  || Match the character with the hex code point value hhh (1-6 hex digits) ||
     27 || \xhh        || Match the character with two digit hex value hh
     28 || \0ooo       ||  Match the character with the octal codepoint value ooo. ||
     29 || [class]     || Match one character from the character class expression ||
     30 || .  || Match any legal character. ||
     31 || ^   || Zero-width match at the beginning of a line. ||
     32 || $   || Zero-width match at the end of a line. ||
     33 || \   || Escape the following metacharacter, match it literally. ||