aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
Similar Threads
String replacement
Not as good as in Ruby?
I don't think I understand how Regular Expression works!
Regular expression pattern ${* }
java regular expression problem