English

FAQ: Is the Find and Replace tool available in ArcGIS Pro?

Question

Is the Find and Replace tool available in ArcGIS Pro?

Answer

No, the Find and Replace tool is not available in ArcGIS Pro. However, 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.
Image showing 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)
Image showing an example of replace function used to replace field values in the attribute table.
  1. Click the Verify icon Image of the verify icon., and click Run to replace the old value with the new value in the attribute table.
Image showing the new value in the NAME field.
 

Related Information