title: Str::is function in laravel How to pass a regular expression
body: <p>When I use this to check the "admin/customer/person/1" string in the regular <code>admin/customer/person/[0-9]+</code>, the program tells me that the regular expression is correct.</p>
  
  <p>But when I use <code>Str::is("admin/customer/person/[0-9]+", "admin/customer/person/1")</code> this function, the result is wrong.</p>
  
  <p>The same thing has the following</p>
  
  <pre class="lang-php prettyprint-override"><code>Str::is("admin/customer/person/([0-9]+)/edit", "admin/customer/person/1/edit");//result is false
  </code></pre>
  
  <pre class="lang-php prettyprint-override"><code>Str::is("admin/customer/person/[0-9]+", "admin/customer/person/1");//false
  Str::is("admin/customer/person/([0-9]+)", "admin/customer/person/1");//false
  Str::is("admin/customer/person/\[0-9]+\\", "admin/customer/person/1");//false
  </code></pre>