23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

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.

3 Basic Program Components<br />

Character Representation (Continued)<br />

Operator<br />

Usage<br />

\f Form feed<br />

\n New line<br />

\r Carriage return<br />

\t Horizontal tab<br />

\v Vertical tab<br />

\char<br />

If a character has special meaning in a regular<br />

expression, precede it with backslash (\) tomatchit<br />

literally.<br />

Grouping Operators<br />

Operator Usage<br />

(expr)<br />

Group regular expressions and capture tokens.<br />

(?:expr) Group regular expressions, but do not capture tokens.<br />

(?>expr) Group atomically.<br />

expr 1<br />

|expr 2 Match expression expr 1<br />

or expression expr 2<br />

.<br />

Nonmatching Operators<br />

Operator<br />

(?#comment)<br />

Usage<br />

Insert a comment into the expression. Comments are<br />

ignored in matching.<br />

Positional Operators<br />

Operator<br />

^expr<br />

expr$<br />

Usage<br />

Match expr if it occurs at the beginning of the input<br />

string.<br />

Match expr if it occurs at the end of the input string.<br />

3-74

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

Saved successfully!

Ooh no, something went wrong!