regular expression.md

Regular Expression

The Regular expression block performs regular expression operations on strings. You can use it to search for matches, split text into parts, or replace matching content. The block returns the resulting text so it can be used by subsequent blocks in the flow.

Fully expanded, the Regular expression block shows the following properties:

Note: The screenshot on this page uses the Elegance Design , introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Regular expression onto the canvas.
  2. Connect the block in the flow and specify Text , Expression , and Method.
  3. Run the flow when it's ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.