Friday, January 12, 2007

Regular Expressions in SourceInsight

^ (at the beginning only)
    Beginning of line
.
    Any single character
[abc]
    Any single character that belongs to the set abc
[^abc]
    Any single character that does not belong to the set abc
*
    Zero or more occurrences of the preceding character
+
    One or more occurrences of the preceding character
\t
    A tab character
\s
    A space character
\w
    White space (a tab or a space character)
$
    The end of the line
[abcde]
    Matches any character within the set.
[x-y]
    Matches on any character within the range of x through y, inclusively.
[WXYa-z0-9]
    Character lists and ranges may be combined.

Shortcuts

Paren Left – Ctrl + 9
    Move to previous enclosing parentheses.
Paren Right – Ctrl + 0
    Move to next enclosing parentheses.
Ctrl + Shift + {
    Move to previous { block level;
Ctrl + Shift + }
    Move to next { block level;
Ctrl + G
    Move to a specified line number
Ctrl + F
    Search for occurrence of a pattern
    F4 – Search for next occurrence
    F3 – Search for previous occurrence
Shift + F9
    Go to next link in the search result
Alt + ,
    Go to previous location in selection history
Alt + .
    Go to next location in selection history

No comments: