본문 바로가기

PHP/기타

[PHP] URL 가져오는 정규식

preg_match('/(http|https):\/\/[^\"\'\s()]+/', $input_line, $output_array);