I have a valid RegEx pattern in .NET:
(?>.*param1=value1.*)(?<!.*param2=\d+.*)
which matches if:
- query string contains
param1=value1
- but does not contain
param2=
a number
It works in .NET. However IIS URLRewrite complains that it is not a valid pattern.
Can I not use zero-width negative look behind (?<! )
expressions with IIS URLRewrite?
Note that I tried to apply this pattern both in web.config (properly changing <
and >
to <
and >
respectively, as well as in the IIS Manager - all without success.