Hi all,
i have problem here with my code.
The thing is, I want to cut a string in several pieces and get a string back
which does not include a string I set before.
Example:
$string = "<quote>This is a text</quote> One more <quote>and so on</quote>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
So what I want is to get a string back that includes only the orange marked piece.
With the code below I get the pieces including the <quote>text</quote> pieces.
preg_match_all("/(<quote>)([^>]*)(<\/quote>)/i", $preg_message, $treffer_quote, PREG_SET_ORDER);
Is there a way to turn around the function so i can get everything except the
<quote>)([>]*)(<\/quote> ?
Or is there a different way to solve the problem?
Hope someone can help me 😕