File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Regular Expression needed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Regular Expression needed." Watch "Regular Expression needed." New topic
Author

Regular Expression needed.

kiranb reddy
Greenhorn

Joined: Sep 28, 2008
Posts: 20
Can someone give the regular expression pattern for replacing all the characters in the String by "\" to "/"


For example:

I have a String with: C:\dev\example


I need to change the pattern to: C:/dev/example.



Please help to solve the above problem,

Thanks in advance,

Kiran.
Shashank Agarwal
Ranch Hand

Joined: May 20, 2004
Posts: 105
Try -
kiranb reddy
Greenhorn

Joined: Sep 28, 2008
Posts: 20
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regular Expression needed.