I'm trying to strip the R's from this statement (SHRI R1 R1 1) so it'll appear as SHRI 1 1 1. But the R in SHRI keeps getting stripped. I'm using String delim = "[ R]+" and its not working. Anybody?
11/13/2009 10:00:30 PM
myString.replaceAll("R(\d)", "$1")ormyString.replaceAll("R([^I])", "$1")depends on how different your real world solution is for your example.[Edited on November 13, 2009 at 10:08 PM. Reason : .]
11/13/2009 10:06:25 PM
anyway I can use the split method?
11/13/2009 10:31:20 PM
maybe delim = "[\\s+R+]"
11/14/2009 12:31:45 AM