longest_common_substring function
Returns the longest common substring between two strings. This substring is the longest
string that is a substring of the two input strings. Eg, the longest common substring
of "ABABC" and "BABCA" is "ABC". The substring is case sensitive.
Syntax
longest_common_substring(string1,string2)
Arguments
string1 → a string
string2 → a string
Example
longest_common_substring('ABABC','BABCA') → 'ABC'
longest_common_substring('abcDeF','abcdef') → 'abc'
longest_common_substring(upper('abcDeF'),upper('abcdex')) → 'ABCDE'