Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

forward slash as a delimiter

807599Mar 1 2007 — edited Mar 2 2007
Hi, I am trying to use the forwardslash (/) as a delimiter in a
scanner.useDelimiter() 
method. Is that possible? The API says that method takes either a pattern or a string, but in the pattern class http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html
there is no escape sequence for the forward slash... Am I wrong or is there a way?

Many thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2007
Added on Mar 1 2007
10 comments
497 views