49
edits
(→"Regexes" (patterns) in Lua: gsub was replaced with gmatch) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{wowlua}} | |||
A '''regular expression''' is a formula for matching strings that follow some pattern. The formula (and syntax used) varies depending on the method of searching used. [[Lua]], the scripting language that World of Warcraft uses, does not support regular expressions. Instead, it offers a basic pattern-matching mechanism with most of the features of REs. Though since Lua doesn't implement regexes, at all, but rather "patterns", this can confuse more than it helps. Better refer to the official Lua documentation (which never mentions "regular expressions"). | A '''regular expression''' is a formula for matching strings that follow some pattern. The formula (and syntax used) varies depending on the method of searching used. [[Lua]], the scripting language that World of Warcraft uses, does not support regular expressions. Instead, it offers a basic pattern-matching mechanism with most of the features of REs. Though since Lua doesn't implement regexes, at all, but rather "patterns", this can confuse more than it helps. Better refer to the official Lua documentation (which never mentions "regular expressions"). | ||
| Line 75: | Line 76: | ||
[http://www.lua.org/manual/5.0/manual.html#5.3 Lua.org] - Good manual | [http://www.lua.org/manual/5.0/manual.html#5.3 Lua.org] - Good manual | ||
[http://lua-users.org/wiki/PatternsTutorial Lua-users.org] - Wiki | [http://lua-users.org/wiki/PatternsTutorial Lua-users.org] - Wiki | ||
[[Category:Glossary]] | [[Category:Glossary]] | ||
[[Category:HOWTOs]] | [[Category:HOWTOs]] | ||
[[Category:Lua]] | |||