test whether a string is a subsequence of another string - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : String Homology Routines : StringTools/IsSubSequence

StringTools[IsSubSequence] - test whether a string is a subsequence of another string

Calling Sequence

IsSubSequence( s, t )

Parameters

s

-

string

t

-

string

Description

• 

The IsSubSequence(s,t) command returns the value true if s is a subsequence of t and the value false otherwise.

• 

If s is the empty string, the command returns true.

• 

To test whether a string is a substring of another, use StringTools[Search].

Examples

withStringTools:

IsSubSequenceabc,abc

true

(1)

IsSubSequenceabc,abx

false

(2)

IsSubSequenceabc,axbyc

true

(3)

See Also

length, StringTools, StringTools[LongestCommonSubSequence], StringTools[Search]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam