Programming Previous page   Next Page

Elements of an Expression

The following tables show the syntax supported by the regexp, regexpi, and regexprep functions. Expressions shown in the left column have special meaning and match one or more characters according to the usage described in the right column. Any character not having a special meaning, (e.g., any alphabetic character) matches that same character literally.

These elements are presented under these categories:

Each table is followed by a set of examples that show how to use the syntax presented in that table.


Previous page  Regular Expressions Character Classes Next page

© 1994-2005 The MathWorks, Inc.