regex 썸네일형 리스트형 [HIve] get access log from RegexSerDe in official Example:CREATE EXTERNAL TABLE intermediate_access_logs ( ip STRING, date STRING, method STRING, url STRING, http_version STRING, code1 STRING, code2 STRING, dash STRING, user_agent STRING)ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'WITH SERDEPROPERTIES ( 'input.regex' = '([^ ]*) - - \\[([^\\]]*)\\] "([^\ ]*) ([^\ ]*) ([^\ ]*)" (\\d*) (\\d*) "([^"]*)" "([^"]*)"'.. 더보기 [PHP] 특수문자 제거 정규표현식 Remove special characters in php $string = preg_replace("/[ #\&\+\-%@=\/\\\:;,\.'\"\^`~\_|\!\?\*$#()\[\]\{\}]/i", "", $string); 더보기 [JavaScript] 링크 처리하기(앵커 추가) 1 function process_content(str){ 2 str = str.replace(/\n/g, ' '); 3 var regex = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/g; 4 return str.replace(regex, "\$&"); 5 } 더보기 이전 1 2 다음