How to use DW to delete comments in batches in php: 1. Delete single-line comments and use [//.*] for regular replacement; 2. Delete multi-line comments and use regular expressions [/\*[ \S\s] ?(?=\*/)\*/] Just search for a match.
How to use DW to delete comments in batches in php:
1. Delete single line comments
Open Dreamweaver's search tool and select regular replacement as shown in the figure:
## The //.* is a regular match Expression of single-line comments
2. Delete multi-line comments
Also use regular expressions to find matches, as shown above: The regular expression is/\*[\S\s] ?(?=\*/)\*/
Related learning recommendations:
The above is the detailed content of How to batch delete comments in php using DW. For more information, please follow other related articles on the PHP Chinese website!