Replacing Text Between Patterns

Inter-line Replacements

XReplace-32 can perform inter-line replacements . This is a replacement of any text between two patterns. For example, to replace all <title> tags in your html pages, you can use the grid line in the graphic below.

The example above will replace anything starting by <title> and ending by </title> by <title>Untitled Document</title> , in case the Include Source for Interline option is enabled, and by Untitled Document if not.

To split the source search pattern cell into a left and a right bound, use the Rows | Split menu item in the Replacements menu. To enable the Include Source for Interline option for all replacements, select the checkbox with the same name in the Options | Replacements section. To enable this option for the single row, enable the first icon in the Options column of the row.

Inter-line Bound Replacements

XReplace-32 can perform inter-line bound replacements . This is an extension to the inter-line replacement feature. Unlike the later, inter-line bound replacement takes care of the bound patterns, rather than of the containing text.

The example above will replace anything starting with left bound and ending with right bound by new left bound ... new right bound . The text between the two bounds will be included if the Include Source for Interline option is enabled.

To split the source search pattern cell into a left and a right bound, and into a left and a right target bound, use the Rows | Split and the Rows | Bound menu items in the Replacements menu. To enable the Include Source for Interline option for all replacements, select the checkbox with the same name in the Options | Replacements section. To enable this option for the single row, enable the first icon in the Options column of the row.