일부 정규식 패턴을 시도했지만 여전히 이에 대한 해결책을 찾을 수 없습니다.문자열에서 "<< >"단어를 어떻게 찾을 수 있습니까?
다음 문자열에서 << >>
개의 단어를 얻고 싶습니다.
$string = "Yes! Bariatric surgery is covered under your plan. Click <<COMPANY>> here to contact a local surgeon and ask them to confirm your insurance benefits for free. See our <<INSURANCE>> page for coverage criteria or scroll down this page to learn more.";
$dash = substr($string,strpos($string,"<<"),strpos($string,">>"));
아무도 나에게 도움이된다면.
감사합니다.
확인을 사이에 단어를 일치, 어디에 코드이며,의 문제는 무엇인가? – Kasramvd
질문을 코드로 업데이트하고 결과가 잘못되었음을 설명하십시오. – Kasramvd
내 해결책을 찾았습니다 ... – user3374268