Hi i need to get the content between 2 strings similar to tags like this:
[code]
some text and
new line
[/code]
I try with this regular expression but it works only without new line :
preg_match("/\[view\](.*)\[\/view\]/",$string, $results);
I need something that works also with newlines! and any characters i put between these 2 "tags" Any idea ?