Template:Str startswith/doc
萌娘百科,万物皆可萌的百科全书!转载请标注来源页面的网页链接,并声明引自萌娘百科。内容不可商用。
跳转到导航
跳转到搜索
本模板用于判断字符串是否以某一子字符串起始。
用法
{{str startswith|字符串|子串}}
- 字符串
- 必填。原字符串。
- 子串
- 必填。用于判断的子串。
范例
代码 |
效果
|
{{str startswith|Example|Ex}} |
yes
|
{{str startswith|Example|ex}} |
|
{{str startswith|Example|f}} |
|
{{str startswith|Example|Example}} |
yes
|
辅助模板 |
---|
| 特殊符号 | 竖线{{ !}} • 等号{{ =}} • 中点{{ w}} • 字符实体{{ ce}} | | 表格替换符号 | 表格开始{{ (!}} • 表格断行{{ !-}} • 表格结束{{ !)}} • 单元格划分{{ !!}} | | 逻辑运算符号 | | | 字符串运算 | | | 标题格式化 | |
|
阅读更多:https://moegirl.icu/Template:Str_startswith/doc
本文引自萌娘百科(https://moegirl.icu ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆》协议。