In the past, when I used dede to collect code, I couldn't filter out more than one line of code, and could only filter it line by line. On the Internet, I found that there are many novices like me. With the continuous use of dede collection, I have a better understanding of regular expressions. Now I can even use a regular expression to match multiple lines of code.
For example: In the following code, filter out hyperlinks with two lines of code.
XXX XXX
| Use the following filter to achieve multi-line matching
{dede:trim}
([^n<]*) {/dede:trim}
Symbols like n can be used as line breaks, and an n represents a line break.
Hope it will be useful to those who are new to dede
http://www.bkjia.com/PHPjc/318145.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318145.htmlTechArticleIn the past, dede collection was used, but more than one line of code could not be filtered out. It could only be filtered line by line. On the Internet , and found that there are many novices like me. With the continuous use of dede collection, for regular...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn