Template:Str endswith

Template-info.svg 模板文档  [查看] [编辑] [历史] [刷新]

本模板用于判断字符串是否以某一子字符串结束。

用法

{{str endswith|字符串|子串}}
字符串
必填。原字符串。
子串
必填。用于判断的子串。

范例

代码 效果
{{str endswith|Example|le}} yes
{{str endswith|Example|LE}}
{{str endswith|Example|F}}
{{str endswith|Example|Example}} yes