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
searchtext - case insensitive string searching
SearchText - case sensitive string searching
Calling Sequence
SearchText(pattern, string, range)
searchtext(pattern, string, range)
Parameters
pattern
-
string or name to be searched for
string
string or name to be searched
range
(optional) range of integers. Search for the pattern only in the substring determined by the range
Description
SearchText and searchtext are very similar. SearchText searches for the pattern in the string looking for exact matches. The searchtext function does the same searching, but it is case insensitive; that is, upper/lower case differences are ignored.
If the pattern is found, both functions return an integer which indicates the position of the first character that matched. If the pattern is not found in the string, these functions return 0.
The optional range restricts the search to the given positions. It is equivalent to searching on substring(string, range). This is useful when the pattern occurs more than once in the string. Negative integers in the range stand for positions counted leftwards from the right end of the string. The first position is 1. The range searches the entire string; the range searches the pattern in the last 20 characters of the string.
Thread Safety
The searchtext and SearchText commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
StringTools, StringTools[Search], substring
Download Help Document