Introduction
Use the Search & Replace Filters to replace a matched expression with another string. This type of filter is a simplified version of an advanced filter.
Using Search & Replace Filters
The search & replace filter requires a filter field, an expression to search for, and a replace expression. The search expression is a POSIX regular expression. The replace expression is any text that you wish to have replace the matched part. Refer to the Filter Fields article for a complete field list. This above example above illustrates how to use a search & replace URL filter to remove a leading directory from the path of a page.
Another use for this type of filter would be to replace category id numbers with descriptive words in the query string of a request. For example, suppose that samples of the requested file with attached queries looks as follows:
/docs/document.cgi?id=1000
/docs/document.cgi?id=2000
Using the search and replace filter, you could convert the 1000 or 2000 ids to their equivalents. For example, 1000 could be changed to books and 2000 to magazines. This would make the viewing of the pages report more useful for people who are not familiar with the codes used to identify the individual items.