Jump to content

Template:Digits/doc

From Simple English Wikipedia, the free encyclopedia

{{digits|string}}

{{digits|1=string}}

Removes all characters from string that are not a digit 0–9.

Examples

[change source]
  • {{digits|1,234,567}}  1234567
  • {{digits|24.51 km (15.23 mi)}}  24511523
[change source]
  • {{str number/trim}}, remove the first non-digit character and everything following