How can negative look-behind assertions be used in regex to filter specific strings in PHP?

Negative look-behind assertions in regex can be used in PHP to filter out specific strings that are not preceded by a certain pattern. This can be useful when you want to match strings that do not contain a particular substring or pattern. By using negative look-behind assertions, you can create more precise regex patterns to filter out unwanted strings. Example PHP code snippet:

```php
$string = "apple orange banana pear";
$pattern = '/(?<!apple\s)orange/';
preg_match_all($pattern, $string, $matches);

print_r($matches[0]);
```

In this example, the regex pattern `/(?<!apple\s)orange/` will match the word "orange" only if it is not preceded by the word "apple". The output will be an array containing the matched strings that meet this criteria.