Andie2302
Andie2302

Reputation: 4887

Which regex flavor is used by .htaccess?

Which regex flavor is used by RewriteRule in the .htaccess file?

It might be: PHP preg, but I am not sure about that.

Upvotes: 3

Views: 354

Answers (1)

Wojtek Surowka
Wojtek Surowka

Reputation: 20993

From http://httpd.apache.org/docs/2.2/rewrite/intro.html

mod_rewrite uses the Perl Compatible Regular Expression vocabulary.

Upvotes: 11

Related Questions