Exercises, examples and other material relating to training module Q803. This topic is presented on public course
Regular Expressions
Regular Expressions - Making the most of Pattern Matching
Regular expressions are probably the most powerful pattern
matching tools that is available. ... http://www.wellho.net/course/refull.html [course] |
Do you want to ignore case in a regular expression? There are a variety of ways of doing it ... depending on the language you're writing. Here are ... http://www.wellho.net/mouth/1336_Ign ... ssion.html [short article] |
Regular Expressions are powerful matching tools and you can specify almost anything within them. But there are certain facilities that are naturally ... http://www.wellho.net/mouth/943_Matc ... sions.html [short article] |
I can write a regular expression to match ANY number of digits between 6 and 25 ...
^[[:digit:]]{6,25}$
but how would I write a regular expression to ... http://www.wellho.net/mouth/1613_Reg ... igits.html [short article] |
If you're searching for the word "mile", you probably don't want the page that tells you that Sally Smiled at Harry. But you may want to find a Milestone, ... http://www.wellho.net/mouth/1735_Fin ... -PHP-.html [short article] |
From the "learning to program in Perl" course I'm running this week, I am pleased to present seven new examples ... written during the course, in front ... http://www.wellho.net/mouth/1860_Sev ... mples.html [short article] |
If I have a list, I'm likely to want to present it comma separated for the most part, but with the word "and" between the last two elements.
"Cambridge, ... http://www.wellho.net/mouth/1601_Rep ... n-and.html [short article] |
As well as matching a pattern, a regular expression can be used to filter out part of a string. This is a very powerful feature, but then you'll also need to learn about capture brackets, sparse and greedy matches, modifiers and more.
This topic is presented on public course
Regular Expressions
Examples from our training material
| bref | Back References |
| isbn | Testing validity of ISBN number, including check digit |
| pcode | Perl - match and extract from a postcode |
Background information
You may
download this module as a sample of our material
Topics covered in this module
Capturing matches.
Which match?.
Alternation.
Sparse matches.
Look around, ahead, behind.
Modifiers.
Ignoring case..
Global matching.
Modifiers that fine tune individual regular expression elements.
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.