title: string Parameter should allow only alphanumaric and dot in Web api route attribute regular expression in .net c#
body: <p>I have one method and in webapi, i am using swagger to call web api. In api request 'request type' parameter should allow only alphabets, numbers and dot(.).
  i have tried below code but it is not working</p>
  
  <pre><code> [HttpGet]
   [SwaggerResponse(HttpStatusCode.OK, Type = typeof(string))]
   [Route(@"testMethod/{requestType:regex(^[A-Za-z0-9. ]+$)}")]
   public IHttpActionResult testMethod(int mid,string requestType = "", )
   {
       //logic
   }
  </code></pre>