Mega Code Archive

 
Categories / Php / Strings
 

Option patterns

(pattern) = Groups the pattern to act as one item and captures it                    (x|y) = Matches either pattern x, or pattern y                    [abc] = Matches either the character a, b, or c                    [^abc] = Matches any character except a, b, or c                    [a-f] = Matches characters a through f