Strings and Regular Expressions in PHP, or
"PCRE, POSIX, and Bears, Oh My!"

UPHPU Meeting
January 18, 2005

Mac Newbold
mac@macnewbold.com

Who am I?

Campaign Promises

Introducing: Strings in PHP

String Syntax

String Operators

Variables in Strings

Must-Have String Functions

Obligatory C-like Functions

Basic String Manipulation

Formatting functions

Special-Purpose Functions

Date and Time Functions

URL Functions

HTML Functions

SQL Functions

Now for the fun stuff...

Regular Expressions

Basics of RE's

RE Patterns

Character Classes and Types

Anchors

Greediness and Modifiers

Back References

Modifiers for Parentheses

PCRE Specifics

POSIX Specifics

Almost there...

Performance/Speed

Grab Bag

Grab Bag 2

Grand Finale

Group Practice