Using wildcards

You can use wildcards to enhance your pattern matching. The following types of wildcard pattern matching can be used:

You can use the DS-5 Debugger command set wildcard-style to change the default setting.

Show/hideGlobs

Globs are a mechanism for examining the contents of strings, and can be used to search variables for strings matching specific patterns. Commands that support wildcards can use globs with the following syntax:

*

Specifies zero or more characters

?

Specifies only one character

\

Specifies an escape character to match on strings containing either * or ?

[character]

Specifies a range of characters. You can use !character to match characters that are not listed in the range.

Example 2.  Globs where a wildcard is expected

info functions m*                 # List all functions starting with m

Show/hideRegular expressions

Commands that support wildcards can use regular expressions. The exact regular expression syntax supported is described in a book called Mastering Regular Expressions.

Example 3. Regular expressions where a wildcard is expected

info functions m.*                 # List all functions starting with m

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452H
Non-ConfidentialID111711