跳转到内容

模板:Str letter/trim/doc

维基百科,自由的百科全书

{{Str letter/trim}} returns a string trimmed英语Trimming (computer programming) to its "beginning letters".

范例

[编辑]
  • {{str letter/trim}}
  • {{str letter/trim |12345}}
  • {{str letter/trim |abcdef?}} → abcdef
  • {{str letter/trim |abc def}} → abc
  • {{str letter/trim |ABcD123}} → ABcD
  • {{str letter/trim |abc, def}} → abc
  • {{str letter/trim |abc(def)}} → abc
  • {{str letter/trim |ÁbČĐÈęFğ}} → ÁbČĐÈęFğ
  • {{str letter/trim |abcdefghijklmnopqrst}} → abcdefghijklmnopqrst
  • {{str letter/trim |abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnopqrstuvwxyz
  • {{str letter/trim | abcdefghijklmnopqrstuvwxyz}} → abcdefghijklmnopqrstuvwxyz
  • {{str letter/trim |NR<ref>A reference for test purposes.</ref>}} → NR

参见

[编辑]
  1. ^ A reference for test purposes.