Hello,
I have a little problem getting a working regular expression for the following haystack:
some text <|another text <| and another one|> the last one|> and this is the end.
The regular expression should find the text within <| and |>. In this case it should find
1. another text <| and another one|> the last one
2. <| and another one|>
As you can see the pattern is nested.
This one does not work, but this is obvious.
preg_match_all("=<\|((\s|.)*[^\|>]*)\|>=U", $text, $um);
Tried some more complex ones, tried some modified patterns to find HTML-Tags from Internet, but nothing worked.
Can somebody help me?
Thanks in advance
gaucho