Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Tips and short articles on this subject
Lua - IAQ (Infrequently Answered Questions)
Lua examples, Lua Courses
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Lua module U108
Pattern matching
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.


© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho