Search results
Results From The WOW.Com Content Network
Template:String split is a convenience wrapper for the split function in Module:String2.. The split function splits text at boundaries specified by separator and returns the chunk for the index idx (starting at 1).
This Lua module is used on approximately 4,830,000 ... {String split | txt=Apples pears ... %s*')-- split str at comma or semicolon separators if there are any for ...
Wrap the string in quotes; quotes can be chosen for a specific language. Will not quote an empty string, and will not quote if there is a quote at the start or end of the (trimmed) string. 1 Input text (will be automatically trimmed); may be empty. 2
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.
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.
This Lua module is used on ... (not nil) or when it is not an empty string.]] local function is ... -- split str at comma or semicolon separators if ...
[[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.
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate