구분 기호는 영숫자 또는 백슬래시 및 preg_match일 수 없습니다.
코드는 다음과 같습니다. $string1 = “My name is ‘Kate’ and im fine”; $pattern = “My name is ‘(.*)’ and im fine”; preg_match($pattern , $string1, $matches); echo $matches[1]; 실행 시 다음 오류가 반환됩니다. 경고: preg_match() [function.preg-match]:구분 기호는 영숫자 또는 백슬래시일 수 없습니다. 질문에 대한 답변 패턴에 대한 구분 기호가 필요합니다.다음과 같이 패턴의 시작과 끝에 추가해야 합니다. … Read more