MathTop

remove_prefix 函数

当文本以指定前缀开头时移除该前缀;否则返回原文本。

语法

  • remove_prefix(text, prefix)
  • RemovePrefix(text, prefix)

参数与选项

text文本值,通常写在引号中。
prefix前缀文本。

示例

  1. 移除前缀remove_prefix('prefixValue', 'prefix')返回 Value。