I have a string like this.
[system]a[/system][system]b[/system][system]c[/system]
I want to return values between [system] and [/system] tags.
So for this example it should return a, b, c. (with preg_match_all function in php)
I tried to use this pattern \[system\](.*)\[\/system\]
but it returns a[/system][system]b[/system][system]c
.
It simply takes the first opening tag and finishes with last closing tag.
How can i do this?