Skip to content

Make the wrap around GET parameters non-capturing

Compare
Choose a tag to compare
@donatj donatj released this 11 Sep 14:31
· 31 commits to master since this release
f4092ee
RewriteCond %{QUERY_STRING} (^|&)foo\=13($|&)
RewriteCond %{QUERY_STRING} (^|&)bar\=baz($|&)

is now generated as

RewriteCond %{QUERY_STRING} (?:^|&)foo\=13(?:$|&)
RewriteCond %{QUERY_STRING} (?:^|&)bar\=baz(?:$|&)

which makes the generated code easier to modify should you want to actually capture something, and is a very minor performance boost.