0
작은 따옴표와 둥근/정사각형/중괄호 사이에있는 경우 문자열의 문자를 대체하는 preg_replace()
에 대한 정규 표현식이 있습니까?PHP preg가 컨테이너 내부의 문자를 바꿉니다
예.
$var = "(replace, here) not,here 'but, here' , [and, this too] , \"oh, escaped as well\", ";
echo preg_replace($pattern, ".", $var);
반환합니다 :
(replace. here) not,here 'but. here' , [and. this too] , "oh. escaped as well",
나는 정규식에 빨아. 그래서 어떤 도움을 주시면 감사하겠습니다.
건배.