Template:User:Clusternote/scan century as integer/str find numeric

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

-1

User:Clusternote/scan century as integer/str find numeric

Returns the first position of the numerical character of the target text.

Usage[edit]

{{ User:Clusternote/scan century as integer/str find numerictext = <target text> }}

Tests[edit]

  • {{Template:User:Clusternote/scan century as integer/str find numeric|text=Musical instruments in the 4th century BC}}
    ⇒28
  • {{Template:User:Clusternote/scan century as integer/str find numeric|text=Musical instruments in the Nth century BC}}
    ⇒-1
  • {{Template:User:Clusternote/scan century as integer/str find numeric|text=Musical instruments in the 9876543210th century BC}}
    ⇒28

See also[edit]