title: command_not_found_handler does not with with slashes
body: <p>I have a problem with <code>"/"</code> sign in bash shell (version 4.3 in Ubuntu 16). I have a function:</p>
  
  <pre><code>command_not_found_handler() {
    if [[ "$1" =~ any$ ]]; then
      echo "$1"
    fi
  }
  </code></pre>
  
  <p>This function should write back the contents of any command written in the terminal when this command ends with <code>any</code>.</p>
  
  <p>This works well, except in the situation when I write something with a <code>/</code>, such as <code>whatever/any</code>. In that event, I receive an error akin to the following:</p>
  
  <pre><code>bash: no such file or directory: whatever/any
  </code></pre>
  
  <p>Any attempts to escape this <code>/</code> in the function have no effect (for instance <code>if [[ "$1" =~ /any$ ]]; then</code> or <code>if [[ "$1" =~ \/any$ ]]; then</code>).</p>
  
  <p>What can I do to make it work with <code>/</code> sign?</p>