In website content operation, we often encounter situations where we need to make unified adjustments to a large number of articles, such as changing brand names, removing outdated information, or cleaning up keywords or phrases that are no longer needed.When facing hundreds or even thousands of articles, manual modification one by one is obviously inefficient and prone to errors.AnQiCMS (AnQiCMS) fully understands the pain points of operators, and therefore built-in powerful "document keyword replacement" function, which can help us efficiently implement the batch modification of article content, of course, including batch deletion of specified text.
Why might you need to batch delete specific sentences from article content?
The need for batch deletion of article content is not uncommon in daily operations. This usually happens in the following situations:
- Brand or product information change:When the company upgrades its brand, adjusts its product line, or changes the name of its services, the article may contain a large number of old brand names, product feature descriptions, or expired promotional information, which needs to be unified deleted.
- Sensitivity words or content filtering:In response to policy regulations or to maintain the healthy ecosystem of the website, it is necessary to regularly review and delete sensitive words, advertising language, or inappropriate content that may exist in the articles.
- Clear invalid links or external promotion information:Over time, some external links embedded in the article may become invalid, or certain cooperative promotional information may have expired. In order to optimize user experience and SEO, it is necessary to remove these contents in bulk.
- Correct commonly occurring spelling errors or irregular expressions:If the website content contains a word with a large number of spelling errors or inconsistent expressions, batch deletion (replaced with empty) is an effective means of quick correction.
- Content optimization and simplification:Some articles may contain redundant repetitive content or padding words. By deleting in batches, the article can be made more concise and improve reading quality.
Using the batch replacement function of AnQi CMS, we can make these seemingly tedious tasks easy.
AnQi CMS "Document Keyword Replacement" feature operation guide
The 'Document Keyword Replacement' feature of AnQi CMS, as the name implies, is to batch replace the specified text in the content.To achieve the effect of "batch delete
Function entry location
First, you need to log in to the AnQi CMS backend management interface. Find and click on it in the left navigation menu.“Content Management”and then select“Document Management”. At the top or side panel of the document management page, you will see a button named“Document keyword replacement”function button or entry, click it to enter the batch replacement operation interface.
Core operation concept: Use 'replace with empty' to achieve 'delete'
After entering the 'Document Keyword Replacement' interface, you will see two main input boxes:
- The keyword or phrase to be replaced:Enter the text you want to delete from the article.
- Replace with:This is the key to achieving the 'delete' effect.Please make sure to leave this input box empty, do not enter any content.This will replace the matching text with an empty string, thus achieving the purpose of deletion.
Specific operation steps
- Enter the text to be deleted:In the 'Need to Replace Keywords or Phrases' input box, accurately enter the keywords, phrases, or even a complete sentence you want to delete.Ensure the accuracy of the text, as the system will match your input exactly.
- Confirm that the replacement target is empty:Leave the 'Replace with' input box blank. This is the signal for the deletion operation.
- Select the replacement mode:
- Normal text mode:Suitable for deleting fixed and precise text without special characters. For example, delete "old company name" or "free trial event has ended".
- Regular expression pattern (advanced application):If you need to delete text that has some regularity (such as specific format phone numbers, links containing variables, or patterns with unknown content), you need to enable regular expressions. Anqi CMS supports using by
{and end with}End the rule code to define regular expressions.- Built-in rules:The system has built-in some commonly used regular expression rules, such as
{邮箱地址}/{日期}/{时间}/{电话号码}/{QQ号}/{微信号}/{网址}. You can directly use these rules to delete the corresponding format content. - Custom rules:If the built-in rules do not meet the needs, you can write your own rules based on regular expression syntax. For example, delete all hyperlinks containing a specific domain
example.comthat may need to be written in a similar manner<a[^>]*href=".*example.com.*"[^>]*>.*?</a>The regular expression (Please note that this is just an example, and the actual regular expression syntax needs to be adjusted according to the specific HTML structure and the security CMS). - Important reminder:Using regular expressions for batch operations has powerful capabilities, but it also comes with high risks.A wrong regular expression can cause you to delete much more content than expected, even destroying the structure of the article.Please be cautious.
- Built-in rules:The system has built-in some commonly used regular expression rules, such as
- Execute replacement:Please carefully check the replacement text and pattern you entered, make sure they are correct, and then click the "Execute" or "OK" button.The system will start processing all articles that meet the criteria.After processing is complete, an operation result prompt is usually given.
Precautions before executing batch operations
Any operation involving batch modification of website content carries certain risks, therefore, before executing the "Document Keyword Replacement" function, please remember the following points:
- Data backup is crucial:Before making any large-scale content modifications, it is strongly recommended that you use the "Resource Storage and Backup Management" feature of AnQi CMS to perform a complete backup of all website data (including databases and files).This can ensure that you can recover to the previous state in time when an operation error occurs.
- Strategy for small-scale testing:If you are not sure whether a certain keyword or regular expression will produce the expected effect, you can first test it on a few unimportant or test articles on a small scale.Observe the replacement result and confirm that it is correct before performing operations on the entire site.
- Understanding the meaning of regular expressions:Especially when you use regular expressions, make sure you fully understand the rules you have written or are using to match what content.If you are not familiar, you can first verify it through an online regular expression test tool, or seek help from a professional.The document of AnQi CMS also clearly points out that 'Improper writing of regular expression rules can easily cause incorrect replacement effects, please pay attention to it.'
Reasonably utilize the "Document Keyword Replacement" function of Anqi CMS, which will help you manage website content more efficiently and accurately.If operated properly, it will become a powerful assistant for your content operation, ensuring the timely update and unity of website information.
Frequently Asked Questions (FAQ)
Q1: Is the batch delete operation reversible? A1: The batch keyword replacement function of AnQi CMS, once executed, the modification of the article content takes effect directly and cannot be reversed. Therefore, we strongly recommend that you must check the website data before performing any batch deletion operations.