Wildcards and Regular Expressions

Wildcards

Wildcards allow a single special character to denote missing parts of a word

Character

Description

*

Denotes "anything" i.e. any letter or sequence of letters (including the empty sequence). For example the search term "calc*" would match all of the words "calc", "calculation", "calcutta" and "calcium".

?

Denotes a single character. Eg "an?" will match any one of "and", "ant", "any" or "ann".

#

Denotes a digit. Eg "Decision#" will match any one of "Decision1", "Decision2" "Decision3" … "Decision9".

Regular Expressions

Blue Prism uses the Microsoft .NET Regular Expression classes. The following table lists some of the meta-characters most commonly used in Regular Expression searches. For comprehensive information about regular expressions and the full range of options available, see the .NET Framework Regular Expressions and Regular Expression Language Elements topics references on the Microsoft MSDN website.

Character

Description

*

Matches the preceding character or sub-expression zero or more times. For example, zo* matches "z" and "zoo". * is equivalent to {0,}.

+

Matches the preceding character or sub-expression one or more times. For example, 'zo+' matches "zo" and "zoo", but not "z". + is equivalent to {1,}.

?

Matches the preceding character or sub-expression zero or one time. For example, "do(es)?" matches the "do" in "do" or "does". ? is equivalent to {0,1}

{n}

n is a non-negative integer. Matches exactly n times. For example, 'o{2}' does not match the "o" in "Bob," but it does match the double-instance of "o" in "food".

.

Matches any single character except "\n". To match any character including the '\n', use a pattern such as '[\s\S].