This page was created by volunteers like you!
Help us make it even better. To learn more about contributing to MEpedia, click here.
Join the movement
Visit #MEAction to find support or take action. Donate today to help us improve and expand this project.
Congratulations!
MEpedia has got over 30 million views as of August 2022!

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]