Javascript is not enabled or not supported by your browser
Javascript is required to display this page properly.
How to include an incremental number in the replacement text ?
Please wait while the page is loading ...

How to include an incremental number in the replacement text ?

Home  Table of content


First of all a list of files to scan must have been compiled as described in topic:
How to compile a list of files for find and replace operations ?
Then proceed as follows:
  1. Go to the Find and Replace panel.
  2. Select (tick off) the Use numbering option.
  3. The Incremental Numbering panel is now enabled.
  4. In this panel, in the Pattern text box, provide a string of your choice e.g. XXX
  5. In the replacement text ( Replace by string or Replacement block ) insert that string where you want the incremental number to be inserted.
  6. In the Start value field, specifies the number at which increments must start.
  7. In the Increment field, specifies the increment value.
  8. Proceed with the replace operation.
The numbering can be optionnally reset to the Start value for each files in which occurrences are found. For that purpose, simply check (tick off) the Reset numbering across files option.
Home  Table of content

Related topics

  1. How to Find and Replace a block of text ?
  2. How to Find and Replace several strings in one go ?
  3. How to Find and Replace between a pair of html tags ?
  4. How to make the Find and Replace operation case sensitive ?
  5. How to look for a 'complete' word only ?
  6. How to search for a specific control (non printable) character ?
  7. How to display the occurrences locations in the files while searching or replacing ?
  8. How to report found occurrences to a file ?
Home  Table of content