title: Pass String Parameters to WP REST API
body: <p>I can pass integer values to WP REST API. But, cannot pass non-numeric characters. It gives error. </p>
  
  <p>This is what I used...</p>
  
  <pre><code>add_action( 'rest_api_init', function () {
      register_rest_route( 'crowdapi/v1', '/register/(?P&lt;id&gt;\d+)/(?P&lt;username&gt;\d+)', array(
          'methods' =&gt; 'POST',
          'callback' =&gt; 'userCheck',
      ) );
  } );
  </code></pre>
  
  <p>Any idea how to pass strings as well.. ?</p>