Search results
Results from the WOW.Com Content Network
<string>.rpartition(separator) Searches for the separator from right-to-left within the string then returns the sub-string before the separator; the separator; then the sub-string after the separator. Description Splits the given string by the right-most separator and returns the three substrings that together make the original.
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 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
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.
Use Module:String.sub internally. We only need a wrapper that handles the basic input values. i, j are as defined in the Module:String.sub. Negative values are accepted. i, j can get default values: i=1, j=len; Basic parameters. All params are optional. For readability here names i, sublen, j are used; in the template they are the unnamed ...
This module is subject to page protection.It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
This Lua module is used on approximately 4,900 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox . Consider discussing changes on the talk page before implementing them.
This Lua module is used in MediaWiki:Wantedpages-summary, and on approximately 1,180,000 pages, or roughly 2% of all pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module ...