MathTop

common_suffix 函数

返回所有输入字符串共有最长后缀的长度。

语法

  • CommonSuffix(text1, text2, ...)
  • common_suffix(text1, text2, ...)

参数与选项

text两个或更多需要比较的文本。

示例

  1. 公共后缀长度CommonSuffix('running', 'sing')返回 3。