PCRE Module - Perl Compatible Regular Expressions

This chapter provides tutorial examples and notes on PCRE module. Topics include introduction of commonly used PCRE functions; searching for patterns and retrieving matched substrings; searching array members; replacing substrings; splitting strings; quoting special characters.

PCRE Module and C Library

preg_match() - Regular Expression Match

preg_grep() - Search Array Members

preg_replace() - Replace Matched Substring

preg_split() - Split String into Tokens

preg_quote() - Escape Characters in Pattern

Takeaways:

Table of Contents

 About This Book

 Introduction and Installation of PHP

 Managing PHP Engine and Modules on macOS

 Managing PHP Engine and Modules on CentOS

 cURL Module - Client for URL

 DOM Module - Parsing HTML Documents

 GD Module - Manipulating Images and Pictures

 MySQLi Module - Accessing MySQL Server

 OpenSSL Module - Cryptography and SSL/TLS Toolkit

PCRE Module - Perl Compatible Regular Expressions

 SOAP Module - Creating and Calling Web Services

 SOAP Module - Server Functions and Examples

 Zip Module - Managing ZIP Archive Files

 References

 Full Version in PDF/EPUB