Exercises, examples and other material relating to training module U108. This topic is presented on public courses
Learning to program in Lua,
Lua Programming
Lua Programming - Learning to program in Lua and make good use of the language
Our public "Lua Programming" course takes you from the
basics of the language
... http://www.wellho.net/course/ubfull.html [course] |
Learning to program in Lua - Learning to program in Lua and make good use of the language
"Learning to program in Lua" takes you from the basics of
computer ... http://www.wellho.net/course/ulfull.html [course] |
Programming training is much more effective if the delegates are shown how a particular program is written, rather than just the final result ... show ... http://www.wellho.net/mouth/1744_Lua ... urses.html [short article] |
Here are a handful of "one line" answers from the end of the Lua Course I was running at the end of last week
• Command line parameters in Lua are ... http://www.wellho.net/mouth/1847_Lua ... ions-.html [short article] |
--[[
There is no built-in function to split a string into a table
of substrings - so here is an example of how you can do it
]]
function string:split(delimiter)
... http://www.wellho.net/resources/ex.php4?item=u108/split [code sample] |
--[[
Lua does NOT support regular expressions - or so they
say in the documentation. But the string patterns that
it matches are pretty darned close ... http://www.wellho.net/resources/ex.php4?item=u108/iiapc [code sample] |
--[[
Removing punctation and getting a stream of
names from a table
]]
lineofdata = "Neil, Siobhan ... Robin & Tom"
-- Replace each non-Alpha with ... http://www.wellho.net/resources/ex.php4?item=u108/dls [code sample] |
This topic is presented on public courses
Learning to program in Lua,
Lua Programming
Examples from our training material
| dls | Pattern substitute, pattern match and extract |
| iiapc | Pattern matching in Lua (not Regular Expressions) |
| patplode | iterating through a string, choosing a pattern |
| pcis | Pattern match and extract - a postcode |
| split | split or explode in Lua |
| stratch | String Pattern Matching |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Anchors, literal characters, counts and groups.
Capturing matchs, capturing all the matches (global)
Pattern Based functions.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.