I need to use preg_match_all to repeat occurrence within a given text. eg.
input: “Lorem Ipsum is simply [repeat] dummy [/ repeat] text of the printing and typesetting industry.”
output: “Lorem Ipsum is simply dummy dummy text of the printing and typesetting industry.”
examples have already tried but my limitations do not help.
I am grateful for who can help me, thanks
You will also need to replace occurrences of [repeat].
Based on @Jerska answer: