CIS 119 - Regular Expressions

Objectives

Regular expressions

Regular expressions allow us to search for patterns in text. This is a powerful tool which has become a standard part of most modern languages. It is difficult to imagine developing any procedural language these days without supporting regular expressions.

The concepts learned with JavaScript regular expressions will be beneficial when using everything from UNIX/Linux standard tools to programming languages such as Java, Perl, and PHP. Taking the time to learn how to use regular expressions will almost certainly pay off in the future.

Online regular expression tester

JavaScript regular expressions

Special characters

Character classes

Repetition and grouping

Alternation and special marker symbols

Flags

String methods which support regular expressions

RegExp object