Skip to content

Commit

Permalink
Merge pull request #76 from airween/usepcre2
Browse files Browse the repository at this point in the history
docs: Add blog post about PCRE2
  • Loading branch information
airween authored Feb 18, 2025
2 parents 05a2d6a + 62c2d9b commit 2e4862b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions content/blog/2025-02-08-use-pcre2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: 'Use PCRE2 as default - 2025 February'
date: '2025-02-18T00:00:00+02:00'
author: airween
---

It's time to switch to using the PCRE library.

<!--more-->

Libmodsecurity3 and mod_security2 have a very important component, namely PCRE. Both engines use PCRE3 by default, but they also support PCRE2. If you want to use it, all you have to do is specify the necessary switch when compiling: `--with-pcre2`.

We are sure it's time to change this behavior. With [this](https://github.com/owasp-modsecurity/ModSecurity/pull/3321) pull request the default PCRE engine in libmodsecurity3 will be PCRE2. Don't worry if you have an old system, it's sill possible to use the old regex engine with switch `--with-pcre`.

We are working on a similar PR for mod_security2.

Summary: in the next releases (both mod_security2 and libmodsecurity3) the default PCRE engine will change and both will use PCRE2.

If you have any perception please leave a comment under the mentioned PR above.

0 comments on commit 2e4862b

Please sign in to comment.