模板: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
此頁面最後編輯於 2020年10月17日 (週六) 23:58。
搜尋萌娘百科 (按"/"快速搜尋)
有新的未讀公告

阅读更多:http://zh.moegirl.tw/Template:Str_endswith
本文引自萌娘百科(http://zh.moegirl.tw ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆》协议。