Pattern Syntax
Patterns define rules for matching text.
Common pattern symbols:
.any character*zero or more+one or more[]character class
Example
Section titled “Example”preg_match("/[a-z]+/", "hello");Patterns define rules for matching text.
Common pattern symbols:
. any character* zero or more+ one or more[] character classpreg_match("/[a-z]+/", "hello");