# Microsoft.AspNetCore.Rewrite

``` diff
 namespace Microsoft.AspNetCore.Rewrite {
     public static class RewriteOptionsExtensions {
-        public static RewriteOptions AddRedirect(this RewriteOptions options, string regex, string replacement);
+        public static RewriteOptions AddRedirect(this RewriteOptions options, [StringSyntaxAttribute("Regex")] string regex, string replacement);
-        public static RewriteOptions AddRedirect(this RewriteOptions options, string regex, string replacement, int statusCode);
+        public static RewriteOptions AddRedirect(this RewriteOptions options, [StringSyntaxAttribute("Regex")] string regex, string replacement, int statusCode);
-        public static RewriteOptions AddRewrite(this RewriteOptions options, string regex, string replacement, bool skipRemainingRules);
+        public static RewriteOptions AddRewrite(this RewriteOptions options, [StringSyntaxAttribute("Regex")] string regex, string replacement, bool skipRemainingRules);
     }
 }
```

