Sometimes you may wish to adjust a URI that WebCopy has detected when crawling a page, before the URI is further processed. For example, you might want to convert simple JavaScript navigation links into a URI, or remove a middle-man redirection page.

To configure the URI transforms

  • From the Project Properties dialog, click the URI Transforms option

Adding a new transform

  1. Click the Add button
  2. In the Expression field, enter the search pattern using a regular expression
  3. Enter the text to replace the matched pattern with in the Replacement field
  4. Optionally, if you only wish the transform to be executed for specific pages, enter the URL into the URL Expression field. This field supports regular expressions.

The Expression field uses regular expressions. If your search phrase includes any of the ^, [, ., $, {, *, (, \, +, ), |, ?, <, > characters and you don't want them to be processed as part of the expression, you need to "escape" the character by preceding it with a backslash. For example, if your expression was application/epub+zip this would need to be written as application/epub\+zip otherwise the + character would have a special meaning and no matches would be made.

Deleting a transform

  1. Select the transform you wish to remove from the list
  2. Click the Delete button

Updating a transform

  1. Select the transform you wish to edit from the list. The Expression, Replacement and URL Expression fields will be updated to match the selection
  2. Enter new values as appropriate. The selected item in the list will be updated with the changes you specify

Changing the order transform are processed

  1. Select the transform you wish to move
  2. Click the Move Up and Move Down buttons to re-order the transform list