Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Alternatively, you can choose to write the total number of matches to a variable.

Don't fail based on number of matches

Fail if there are LESS than X matches.

Fail if there are MORE than X matches.

Put match count into variable

Matches

This option is only enabled if you are searching all files in a FileSet. It allows you to specify whether or not you wish to count the grand total of matches across all files, or count matches on a file by file basis.

When replacement is enabled and the action is set to "Count total matches for all files", the replacement text will be written to every file regardless of whether or not the action fails. When "Count matches for each file" is selected, the replacement text will only be written if the action succeeds for that file. If the action fails while processing a file, no other files in the FileSet will be processed (the action stops.)

Count total matches for all files

Count match for each file

 

Script Events

In the Script Editor tab, you can see the OnFindText scripting event which allows you to respond to individual matches.

...