Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
StringTools[WildcardMatch] - match strings against glob-style patterns
Calling Sequence
WildcardMatch( pattern, text )
Parameters
pattern
-
Maple string
text
Description
The WildcardMatch(pattern, text) command provides glob-style pattern matching. Given a pattern containing wildcards, and an input string text, WildcardMatch returns the value true if the given text matches the pattern, and returns the value false otherwise.
The wildcards are similar to those used in filename globbing in UNIX shells. These are defined as follows.
*
matches zero or more characters
?
matches one character
[ccl]
matches any character in the character class
ccl
Character classes denote sets of characters to match. A character class is enclosed in square brackets (). It can be a simple list of characters, such as , which matches any of the characters , , , or . Character classes can include character ranges, which are defined by their order in the US-ASCII character encoding. For example, the character class matches any lowercase letter, and matches any digit. A character class can be negated (or complemented) by including the character as the first within the character class. Thus, for instance, denotes the set of characters other than the digits. The "^" character has this special complementing meaning only when it appears as the first character in a character class. If it appears elsewhere, then it stands for itself. To include a hyphen character "-" in a character class, write it as the first character in the character class, or include it in a character range. To include the character "]" in a character class, write it as the first character following the opening bracket, or include it in a character range.
Pattern matching facilities provided by the StringTools package include regular expression matching (see StringTools[RegMatch]) and fast string search (see StringTools[Search] and searchtext).
Examples
Escape the opening square bracket ([) in the pattern using two backslashes to interpret it as a normal character.
See Also
searchtext, string, StringTools, StringTools[RegMatch], StringTools[Search]
Download Help Document