Hi, I need to get the contents between two lines that look like tags:
[code]
some text and
new line
[/code]
I am trying to use this regex, but it only works without a new line:
preg_match("/\[view\](.*)\[\/view\]/",$string, $results);
I need something that works with new characters too! and any characters that I put between these two "tags" Any ideas?
source
share