User Tools

Site Tools


syntax:functions:commonsubstring

CommonSubstring(text1, text2)

Category: Text function


Description

This function returns the longest substring common to both text1 and text2.


Arguments

ArgumentTypeDescription
text1TextAny text, or value that can implicitly converted to text.
text2TextAny text, or value that can implicitly converted to text.

Return value type: Text


Remarks

This function is case sensitive.


Examples

commonsubstring( "Bicycle DX-349 black", "Velo DX-349 noir" ) //Returns " DX-349 " (note leading/trailing spaces)
commonsubstring( "Bob", "David" ) //Returns empty value (no common strings found)


See also

syntax/functions/commonsubstring.txt · Last modified: 2024/10/21 12:22 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki