Search results
Results from the WOW.Com Content Network
This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the
Regular expressions (or regex) are a common and very versatile programming technique for manipulating strings. On Wikipedia you can use a limited version of regex called a Lua pattern to select and modify bits of text from a string. The pattern is a piece of code describing what you are looking for in the string.
This Lua module is used on ... Space-separated list of character codes ... end return r end Text. getPlain = function (adjust)-- Remove wikisyntax from string, except ...
The string-search functions in Lua script can run extremely fast, comparing millions of characters per second. For example, a search of a 40,000-character article text, for 99 separate words (passed as 99 parameters in a template), ran within one second of Lua CPU clock time.
Returns string with the first n occurrences of target replaced with replacement. Omitting count will replace all occurrences. Space counts as a character if placed in any of the first three parameters.
[[Category:Templates based on the String Lua module]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Templates based on the String Lua module]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
(string):find(substring) Lua: returns nil string indexOfSubCollection: substring startingAt: startpos ifAbsent: aBlock string findString: substring startingAt: startpos: Smalltalk (Squeak, Pharo) evaluate aBlock which is a block closure (or any object understanding value) returns 0 startpos = INDEX(string, substring «,back» «, kind») Fortran
The template trims whitespace from a string. Template parameters Parameter Description Type Status String 1 The string to be trimmed of whitespace String required See also {{ remove border }}