> For the complete documentation index, see [llms.txt](https://oguzhaninan.gitbook.io/varnish-cache/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oguzhaninan.gitbook.io/varnish-cache/varnish-yapilandirma-dili-vcl/vcl-sintaks/duezenli-ifadeler.md).

# Düzenli İfadeler

VCL, Perl Compatible Regular Expressions (PCRE) destekler. **\~** operatörü kullanılarak desen eşleştirmesi için normal ifadeler kullanılabilir. **Regular Expressions** ile, metin eşleştirme ve değiştirme için **regsub** ve **regsuball** gibi işlevlerde de kullanılabilir. Örnek:

{% code title="default.vcl" %}

```c
sub vcl_recv {
  if(req.url ~ "^/products/[0-9]+/"){
      set req.http.x-type = "product";
  }
}
```

{% endcode %}
