I want to test that a given string does not belong to the following group of strings: 22 75.
Could anyone please tell why PHP\'s preg_match(\"/[^(22|75)]/\
preg_match(\"/[^(22|75)]/\
In regular expression, [...] match any character inside the bracket.
[...]
To be more correct:
[^...]
^
Remove the [, and ] if you want to match string that starts with 22 or 76.
[
]
22
76