skip to navigation skip to content
Instructor-led course

Provided by: University Information Services



2015


2017



Register interest
Register your interest - if you would be interested in additional dates being scheduled.


Events available

Pattern Matching Using Regular Expressions
Prerequisites


Description

This course describes how patterns in text strings can be matched using regular expressions. A number of programming and scripting languages (such as Python, Perl, and Java) and other applications (such as Apache, PHP, Exim, and some text editors) support the use of regular expression patterns. Although there are some differences between the different implementations, there is also a lot in common.

The course has been modified and extended from the one previously given by Philip Hazel, the author of the PCRE ("Perl Compatible Regular Expressions") library, one of the standard and widely used regular expression libraries. The extensions are: Python and Java to the same level as Perl and PCRE; more warnings about problem areas, background usage and programming hints; and a short section on true (computer science) regular expressions and their uses when transferring data between programs.

Prerequisites

Some programming or scripting experience using text as input (e.g. decoding arguments or input data).

Topics covered
  • Brief introduction and history
  • Basic character matching and encoding
  • Repetition, assertions and alternation
  • Capturing and using parts of the subject
  • Extended parenthesis features and atomicity
  • Lookahead, lookbehind and conditional matching
  • Back references and recursion
  • Different ways of matching a pattern
  • Performance issues
  • True regular expressions and data formats
Format

Presentation

Notes
Duration

Two half day sessions

Themes

Events available

Override user: