Study/Java

구분기호로 문자열 나누가(split a string with whitespace)

nobang 2011. 1. 4. 17:27
728x90
String s = "abc def";

s.split("\\s");

\D : 숫자 빼고
\d : 숫자만
728x90