title: Using regex in flask restful api route url
body: <p>I am trying to add regex based url for flask api. but it doesn't seems to work. and i am unable to find a solution on documentation too.</p>
  
  <pre><code>scheduler_blueprint = Blueprint('scheduling_api', __name__)
  api = TalentApi()
  api.init_app(scheduler_blueprint)
  api.route = types.MethodType(api_route, api)
  
  @api.route('/tasks/&lt;string:id&gt;')
  class TaskById(Resource):
  ....
  
  @api.route('/tasks/resume/')
  class ResumeTasks(Resource):
  ....
  </code></pre>
  
  <p>where string:id should be a hash other than 'resume'
  as far as i know, regex is the only thing which i can use in this scenario to remove this conflict.
  how can i use regex in url <strong><em>for flask restful api</em></strong> ?</p>