Template:Str find/doc

From Path of Exile Wiki
Revision as of 19:03, 11 July 2016 by >TheFrz (Created page with "{{Documentation subpage}} {{Lua|Module:String}} {{tlx|str find short|''target''|''string''}} outputs the position in ''target'' where ''string'' first appears (e.g. an output...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This subpage provides documentation for Template:Str find.

Lua logo

This template uses the following modules:

{{str find short|target|string}} outputs the position in target where string first appears (e.g. an output of "3" would mean beginning at the third character in target). If string is not found, it outputs zero (0).

Examples

Example Output
{{str find short|abcdef|bcd}} Template:Str find short
{{str find short|123456789.|45}} Template:Str find short
{{str find short|x+2.437-6|2.43}} Template:Str find short
{{str find short|:***abcd**|*ab}} Template:Str find short
{{str find short|Fast Forward (film)|(}} Template:Str find short
{{str find short|Fast Forward Longer (film)|(}} Template:Str find short
{{str find short|A Funny Thing Happened on the Way to the Forum (film)|(}} Template:Str find short
{{str find short|abcdef|x}} Template:Str find short
{{str find short|abcdef|xyz}} Template:Str find short