Skip to main content

Wildcard expressions

When specifying Input, URL, or Queue/topic exclusions for applications, you can build wildcard expressions using:

  • .* to mean 0 or more of any character

  • .+ to mean 1 or more of any character

  • .? to mean 0 or 1 of any character

  • . to mean 1 of any character

  • \. for an escaped literal of . for usage

    Example: somefile\.jsp

Wildcard expression examples

Desired effect

Regular expression

Example

Exclude all subpaths

/myapp/.+

Excludes all paths with the initial URL of /myapp/

Exclude one character from subpath

/.yapp

Excludes all subpaths that are 5 characters and end in yapp (like myapp)

Exclude one subpath explicitly

/myapp/thispath

Excludes only /myapp/thispath

Exclude path ending

/.*ignore

Excludes all paths ending in ignore

Exclude paths containing

/.*value.*

Excludes all paths containing value

Exclude path containing

/.?value.*

Excludes all paths either starting with value or paths that have one character before value

Exclude paths where a period (dot) is used as a literal character and not a wildcard.

/myapp\.js

Excludes only myapp.js

You can use up to three instances of this expression.