Longest common substring: Difference between revisions
m
→{{header|Mathematica}}
m (→{{header|REXX}}: changed whitespace.) |
|||
Line 1,295:
<lang Maple>StringTools:-LongestCommonSubString("thisisatest","testing123testing");</lang>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
The function <code>LongestCommonSubsequence</code> returns the longest common substring, and <code>LongestCommonSequence</code> returns the longest common subsequence.
<lang Mathematica>Print[LongestCommonSubsequence["thisisatest", "testing123testing"]];</lang>
|