> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find and replace code strings on the Advanced tab

> Find and replace strings in FlexiLayout language code with the Find in Advanced Code dialog box, searching the current element and all its subelements.

You can write expressions in the [FlexiLayout language](/flexi-capture/fls/code/general-code) to specify element properties, and you can specify [additional search constraints](/flexi-capture/fls/template/advanced-constraints) on the **Advanced** tab of the element's **Properties** dialog box.

Find and replace runs on the code of the current element and all of its subelements. To run it on the code of all elements, select the FlexiLayout (that is, the root element in the tree). To run it on only one layout alternative, select that alternative in the tree.

This feature is useful, for example, when replacing the name of an element, since you do not have to open the **Advanced** tab in the properties of each element individually.

## Find and replace a code string

<Steps>
  <Step title="Select the element in which to search" />

  <Step title="Open the Find in Advanced Code dialog box">
    Select **Tools → Find in Code...**, or select **Find in Code** on the element's shortcut menu.
  </Step>

  <Step title="Enter the search and replacement strings">
    In the **Find what** field, enter the string to find. In the **Replace with** field, enter the string to replace the found code fragment with. Select **Match case** if the search must be case sensitive.
  </Step>

  <Step title="Run the find and replace">
    Click **Find All** to find all instances, or **Replace All** to replace all the found code fragments. The results appear in the **Results** field.
  </Step>
</Steps>
