Frequently asked question

Is the Find and Replace tool available in ArcGIS Pro?

Last Published: April 6, 2021

Answer

Yes, the Find and Replace tool is available in ArcGIS Pro 2.5 and later.

The Find and Replace tool as seen in ArcGIS Pro 2.5 and later

However, for earlier versions of ArcGIS Pro, the .replace() function in the Calculate Field tool is an alternative solution to search and replace field values in an attribute table.

The following instructions explain how to replace the values of a field in the attribute table using the .replace() function.

  1. In ArcGIS Pro, right-click the layer in the Contents pane, and select Attribute Table.
  2. Select the field, and click the Calculate Field icon on the top panel of the attribute table.
The Calculate Field icon on the top panel of the attribute table.
  1. In the Calculate Field window, insert the following expression in the Expression box, and change the FieldName in parentheses accordingly.
replace(!FieldName!)
  1. Type in the following expression in the Code Block box, and change the OLDVALUE and NEWVALUE accordingly.
import re
def replace(val):
 return re.sub ('OLDVALUE', 'NEWVALUE', val)
The replace function used to replace field values in the attribute table.
  1. Click the Verify icon The verify icon., and click Run to replace the old value with the new value in the attribute table.
The new value in the NAME field.

Article ID: 000014591

Software:
  • ArcGIS Pro 1 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options