How to display quote format by preg_match function?
Meta-character . match any character except newline. If you have new lines inside quote, try this: preg_match_all( ‘#<blockquote.*?>([\s\S]*?)</blockquote>#’, $content, $matches ); Escape sequences: \s – any whitespace character \S – any character that is not a whitespace character