Module:String/doc

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

This is the documentation page for Module:String

See wikipedia documentation

Functions[edit source]

  • len
  • sub - return substring in a particular position
  • sublength
  • match
  • pos
  • str_find
  • find
  • replace
  • rep - repeats a string a number of times
  • escapePattern - escape certain characters
  • count - number of occurrences found
  • join - join using a separator character
  • endswith - returns yes if found

Case insensitive matches[edit source]

Lua does not include functionality for this, but Template:Lowercase can be used, or similar functions in Lua.

Existing String manipulation templates[edit source]


See also[edit source]