Pattern (start and end slashes will be added when needed) Replacement Subject Matches preg_match_all preg_match preg_replace preg_split Caseless (i) Multiline mode (m) Dot all (s) Extended (x) Anchored (A) Dollar end only (D) Extra analysis of pattern (S) Pattern is ungreedy (U) Extra (X) Pattern is treated as UTF-8 (u) Pattern order Set order Offset capture Split no empty Split delim capture Spli