// 엑셀시트에서 카피된 테이블 (탭으로 구분된)데이터를 위키 테이블로 변환하는 매크로('||'로 셀구분) String str = textArea.getText(); str = str.replaceAll("\"([^\"]*)\n([^\"]*)\"", "$1 $2"); str = str.replaceAll("^|\t", "||"); str = str.replaceAll("(.)\n(.)", "$1||\n||$2"); str = str.replaceAll("(.)$", "$1||"); textArea.setText(str);