Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
StringTools[SubString] - extract a substring from a string
Calling Sequence
SubString( s, r )
Parameters
s
-
Maple string
r
range; specifies what substring to extract
Description
The SubString(s, r) command returns a substring of string s specified by range r. A substring is a sequence of characters that occurs contiguously in the original string from which it is selected.
The range r must have integer endpoints. Range indexing for this function is similar to substring selection via the notation. For more information about range indexing, see selection.
The main difference between Substring and the Maple built-in substring procedure is that, when presented with a symbol as the first argument, substring returns a symbol while SubString returns a string.
Examples
See Also
selection, string, StringTools, StringTools[Drop], StringTools[Map], StringTools[Select], StringTools[Take], substring, type[string], type[symbol]
Download Help Document