PHP Option Patterns: – String Function

(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

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.