When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Help:Manipulating strings - Wikipedia

    en.wikipedia.org/wiki/Help: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 symbols you an use in a pattern are: . means any individual character. ... would mean any three characters, etc. *, +, ?, and -are the ...

  3. Wikipedia:Lua string functions - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Lua_string_functions

    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.

  4. Help:Lua for beginners - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_for_beginners

    For example, in one go it can change the errors 'New yorker', 'New-Yorker', and 'NewYorker' into 'New Yorker'. To begin with, a pattern works like a plain string so long as it doesn't contain the special characters ^ $ () % . [] * + - ? Square brackets [ ] are used to match one single character in the string from a list of choices.

  5. Module:LuaCall - Wikipedia

    en.wikipedia.org/wiki/Module:LuaCall

    {{#invoke:LuaCall|main|arbitrary variables|parameters|functioncall}} The arbitrary variables are any key of your choice = any value of your choice. Values are interpreted as strings unless tonumber (value) isn't nil, i.e. numbers should be converted to the numeric type.

  6. Wikipedia:Lua/Resources - Wikipedia

    en.wikipedia.org/wiki/Wikipedia:Lua/Resources

    Wikipedia:Lua style guide – standards to improve the readability of code through consistency "What do converted templates look like?" (slideshow) Help:Lua debugging – a how-to guide about debugging Lua modules; Help:Lua for beginners – basic tutorial and pointers; Wikipedia:Lua string functions – string performance considerations and limits

  7. Wikipedia talk:Lua style guide - Wikipedia

    en.wikipedia.org/wiki/Wikipedia_talk:Lua_style_guide

    I mentioned the 8/4 input because current Lua source that happens to have tabs (because it was prepared somewhere else and was pasted into the edit window) should be using 8-column tabs (an example being Module:Convert/data), while someone writing a new module in the new CodeEditor will get 4-character column tabs if they press the Tab key. A ...

  8. Help:Lua debugging - Wikipedia

    en.wikipedia.org/wiki/Help:Lua_debugging

    Let's take a practical example. for this example, assume your user name is "Lua Developer". Let's say you want to test a bug-fix or enhancement to the String module. There are two reasons you can't do it directly: this module contains functions that are used by hundreds of templates, transcluded in millions of articles.

  9. String interpolation - Wikipedia

    en.wikipedia.org/wiki/String_interpolation

    Find variable reference (placeholder), replace it by its variable value. This algorithm offers no cache strategy. Split and join string: splitting the string into an array, merging it with the corresponding array of values, then joining items by concatenation. The split string can be cached for reuse.