SunlitGreen - Free Digital Photo Editing Programs
Home > Products > SunlitGreen BatchBlitz > Tutorials > Using the Regex Tester Tool

Using the Regex Tester Tool

In this tutorial, you'll learn how to edit and test regular expressions using the Regex Tester tool in BatchBlitz.



Regular expressions are an extremely powerful tool for manipulating text and data. With built-in support for regular expressions, BatchBlitz is definitely an invaluable part of your toolkit.

In BatchBlitz, regular expressions are used when you filter or rename files.


Just choose menu option  Tool > Regex Tester, or simply click button on the main toolbar.

Here you enter a line of text on which to perform the matching test.

Enter a regular expression here if option Regular expression is checked. Enter a wildcard pattern otherwise.

  1. Enter a string into the Text entry;
  2. Enter a regular expression or wildcard pattern into the Regex entry;
  3. Click button Test.

If no match is found, the result window just displays "'No matches". Otherwise, matched text and all captures are listed, as shown in the above image.

Back-references (e.g. $1) enable you to manipulate part of the matched text. They can be very helpful when renaming files using BatchBlitz.

  If you enter an invalid regular expression (or wildcard pattern),  the background color of entry Regex will change to a light pink. As can be seen in the below image, the entered regex contains unclosed parentheses:

  Tested texts and regexes are automatically saved in the dropdown lists. To clear these cached values, choose menu option Tool > Clear Private Data.... In the shown dialog, make sure the option Regex Tester history is checked. See below:

For more information on regular expression and Regex Tester, see BatchBlitz online help.


For more tutorials on using BatchBlitz, click here.