> For the complete documentation index, see [llms.txt](https://jorgectf.gitbook.io/awae-oswe-preparation-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jorgectf.gitbook.io/awae-oswe-preparation-resources/by-language/php/regex.md).

# Regex

## Weak Comparison

```
((STRCMP).*== *0|0 *== *(STRCMP))
```

```
==
```

## Weak Filtering

```
(PREG_REPLACE)[ \('"]*/ *[a-z0-9]{2,}
```

## Deserialization

#### Regex to find unserialize function followed by anything being passed a variable.

```
unserialize\(.*(\$)*
```
