Skip To Content

Athabasca University

Section 5.2 String Processing with Regular Expressions in PHP

Learning Objectives

After you have completed this section, you should be able to

  • write regular expressions.
  • use regular expressions to process strings.

Activities

Study Questions

  1. What are regular expressions in PHP?
  2. What can regular expressions be used for in PHP?
  3. How do you write and use regular expressions in PHP?
  4. What are quantifiers?
  5. How do you search for expressions?
  6. How do you represent patterns in PHP?
  7. How do you find matches to a given pattern with PHP?
  8. What can you do with multiple instances of a pattern in PHP?
  9. How do you assign values to variables in PHP?
  10. What are character classes? What can they be used for?

Summary

Read the Chapter 19 summary.

Updated May 06 2022 by FST Course Production Staff