Hi i've got a String like "DE32424;WV424324;FR234324;DE45345"
How would I ignore everything after the first ; so only DE32424 would be left in t开发者_如何学Pythonhe string after using .replaceAll() in JAVA.
replaceAll(";.*", "");
yourString.substring(0, yourString.indexOf(';'))
精彩评论