Шаблон:Str number/trimE

Iz Vojne Enciklopedije
< Шаблон:Str numberОво је најновија верзија ове странице; нема одобрених измена.
Пређи на навигацију Пређи на претрагу
Документација шаблона[прикажи] [уреди] [историја] [освежи]

The Template:Str_number/trimE extracts a number at the end of parameter 1.

It takes a string as parameter, and returns the string trimmed to the ending number if non-numeric text does not appear after the last number.

Examples

  • {{Str number/trimE}}
  • {{Str number/trimE|abcde}}
  • {{Str number/trimE|abcde123}} → 123
  • {{Str number/trimE|123456}} → 123456
  • {{Str number/trimE|123 456}} → 456
  • {{Str number/trimE|1976–2006}} → 2006
  • {{Str number/trimE|19/76+2006}} → 2006
  • {{Str number/trimE|1234abc}}
  • {{Str number/trimE|1234abc56}} → 56
  • {{Str number/trimE|12345678901234567890}} → 12345678901234567890
  • {{Str number/trimE|1234567890123456789012345}} → 1234567890123456789012345
  • {{Str number/trimE| 1234567890123456789012345}} → 1234567890123456789012345
  • {{Str number/trimE|13<ref>a reference</ref>}}

See also

References

  1. a reference