In the past with Dede collection, always filter not off more than one line of code, only a row of filtering, on the Internet, found there are many and I like the rookie. With the constant use of Dede acquisition, there is a further understanding of the regular, and now I use a regular expression, the same can match multiple lines of code.
For example, in the following code, filter out a hyperlink with two lines of code.
Xxx
Xxx
Multi-line matching can be achieved with the following filter
{Dede:trim} ([^\n<]*) {/dede:trim}
A sign like this can be used as a newline character, and a \ n represents a newline.
Hope to be useful to beginners Dede.
The above describes the Dedecms acquisition Dedecms collection can filter the regular expression of multiple lines of code, including the content of the Dedecms collection, I hope that the PHP tutorial interested in a friend helpful.