Template

Replace

From Halal Explorer

Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

[view] [edit] [history] [purge] Template-info.svg Template documentation

Usage

{{replace|string|target|replacement|count=n}}

Returns string with the first n occurrences of target replaced with replacement. Omitting Template:Code will replace all occurrences. Space counts as a character if placed in any of the first three parameters.

Examples

  • {{replace|One two two three two four twotwo five|two|NINE}}Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
  • {{replace|One two two three two four twotwo five|two|NINE|count=2}}Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted

Space

  • {{replace|One-two two-three two-four twotwo-five|-|—}}Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted
  • {{replace|One-two two-three two-four twotwo-five|- |—}}Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted