title: Java - Forward Slash Escape Character
body: <p>Can anybody tell me how I use a forward slash escape character in Java. I know backward slash is \ \ but I've tried \ / and / / with no luck!</p>
  
  <p>Here is my code:-  </p>
  
  <pre><code>public boolean checkDate(String dateToCheck) {  
      if(dateToCheck.matches("[0-9][0-9]\ /[0-9][0-9]\ /[0-9][0-9][0-9][0-9]")) {
          return true;
      } // end if.
      return false;
  } // end method.
  </code></pre>
  
  <p>Thanks in advance!</p>