Home >Backend Development >PHP Tutorial >Regular expressions that can filter multiple lines of code in dedecms collection dedecms collection
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.
The above introduces the regular expressions in dedecms collection that can filter multiple lines of code in dedecms collection, including the content of dedecms collection. I hope it will be helpful to friends who are interested in PHP tutorials.