How do you use regular expressions in PHP?

Answer:
Use the preg functions (ereg functions are deprecated)

Wiki regex to form your regex string
Contributor: Paul
First answer by Melekin. Last edit by Melekin. Contributor trust: 0 [recommend contributor recommended]. Question popularity: 1 [recommend question].