$pattern = "/(abcd){1,2}.*(efgh){1,2}/"; $string = "abcd123efgh456"; preg_match_all($pattern,$string,$result);로그인 후 복사로그인 후 복사 이렇게 작성해 보겠습니다. 결과 배열에 abcd를 넣습니다. efgh를 배열에 넣는 대신 배열에 넣기를 바랍니다. 감사합니다