23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Regular Expressions<br />

Character Classes<br />

Operator<br />

Usage<br />

. Any single character, including white space<br />

[c 1<br />

c 2<br />

c 3<br />

] Any character contained within the brackets: c 1<br />

or c 2<br />

or c 3<br />

[^c 1<br />

c 2<br />

c 3<br />

]<br />

Any character not contained within the brackets:<br />

anything but c 1<br />

or c 2<br />

or c 3<br />

[c 1<br />

-c 2<br />

] Any character in the range of c 1<br />

through c 2<br />

\s Any white-space character; equivalent to [<br />

\f\n\r\t\v]<br />

\S Any non-whitespace character; equivalent to<br />

[^ \f\n\r\t\v]<br />

\w Any alphabetic, numeric, or underscore character;<br />

equivalent to [a-zA-Z_0-9]. (True only for English<br />

character sets).<br />

\W Any character that is not alphabetic, numeric, or<br />

underscore; equivalent to [^a-zA-Z_0-9]. (Trueonly<br />

for English character sets).<br />

\d Any numeric digit; equivalent to [0-9]<br />

\D Any nondigit character; equivalent to [^0-9]<br />

\oN or \o{N}<br />

\xN or \x{N}<br />

Character of octal value N<br />

Character of hexadecimal value N<br />

Character Representation<br />

Operator Usage<br />

\\ Backslash<br />

\$ Dollar sign<br />

\a Alarm (beep)<br />

\b Backspace<br />

3-73

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

Saved successfully!

Ooh no, something went wrong!