공격툴 › 최신해킹동향및해킹기술수강노트 › EclipseOnUbuntu › JavascriptTips › 코드결합도낮추기 › JEditMacro
// 엑셀시트에서 카피된 테이블 (탭으로 구분된)데이터를 위키 테이블로 변환하는 매크로('||'로 셀구분) 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);