Results 1 to 5 of 5
Thread: Replace "\" with "/"
- 11-19-2008, 11:02 AM #1
- 11-19-2008, 11:08 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Have you tried
Java Code:String sPath= txtSample1.getText().replace("\\","/");
- 11-19-2008, 01:36 PM #3
TutorialJava Code:StringBuffer sb = new StringBuffer(); // Pattern pattern = Pattern.compile("\\\\"); Matcher matcher = pattern.matcher(sPath); // ?.... while(matcher.find()) { matcher.appendReplacement(sb,"/"); }
It's early am, gotta go so sample code probably need work .....Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 11-20-2008, 02:25 AM #4
Sorry for the late reply and thanks again masi for help and nicoloas too^^.
- 11-20-2008, 04:16 AM #5
Similar Threads
-
Hwlp with "Open", "Save", "Save as..."
By trill in forum New To JavaReplies: 3Last Post: 11-02-2010, 09:26 AM -
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM -
<core:forEach var="" begin="+<%=j%>+">???
By freddieMaize in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2008, 01:20 AM -
"Jumble" or "Scramble" Program
By Shadow22202 in forum Java AppletsReplies: 8Last Post: 04-30-2008, 03:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks