10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Brief Regular Expression Definition<br />

REGULAR EXPRESSIONS<br />

[char-set1 - [char-set2]] Character set subtraction. Matches all characters in char-set1<br />

except the characters in char-set2. For example, [a-z-[qw]]<br />

matches all English lowercase letters except “q” and “w”.<br />

[\p{L}-[qw]] matches all Unicode lowercase letters except “q”<br />

and “w”.<br />

[char-set1 & [char-set2]] Character set intersection. Matches all characters in char-set1<br />

that are also in char-set2. For example, [\x{0}-\x{7f}&[\p{L}]]<br />

matches all letters between 0 and 127.<br />

\x{hhhh} Matches up to 31-bit Unicode hexadecimal character specified<br />

by hhhh.<br />

\p{UnicodeCategorySpec] (Only valid in character set) Matches characters in<br />

UnicodeCategorySpec. Where UnicodeCategorySpec uses<br />

the standard general categories specified by the Unicode<br />

consortium. For example, [\p{L}] matches all letters. [\p{Lu}]<br />

matches all uppercase letters. See Unicode Category<br />

Specifications for Regular Expressions.<br />

\P{UnicodeCategorySpec] (Only valid in character set) Matches characters not in<br />

UnicodeCategorySpec. For example, [\P{L}] matches all<br />

characters that are not letters. This is equivalent to [^\p{L}].<br />

[\P{Lu}] matches all characters that are not uppercase letters.<br />

See Unicode Category Specifications for Regular Expressions.<br />

\p{UnicodeIsBlockSpec] (Only valid in character set) Matches characters in<br />

UnicodeIsBlockSpec. Where UnicodeIsBlockSpec one of<br />

the standard character blocks specified by the Unicode<br />

consortium. For example, [\p{isGreek}] matches Unicode<br />

characters in the Greek block. See Unicode Character Blocks<br />

for Regular Expressions.<br />

\P{UnicodeIsBlockSpec] (Only valid in character set) Matches characters not in<br />

UnicodeIsBlockSpec. For example, [\P{isGreek}] matches<br />

all characters that are not in the Unicode Greek block. This is<br />

equivalent to [^\p{isGreek}]. See Unicode Character Blocks<br />

for Regular Expressions.<br />

\xhh Matches hexadecimal character hh where 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!