[GIS] Find and replace, field calculator

arcgis-10.1arcgis-desktopfield-calculatorpythonvbscript

Can someone show me a very simple find and replace in field calculator for just one or two characters in a field based hyperlink?

Best Answer

If I understand correctly, you might try something like the replace() function:

VBS

replace([FieldName], "Old Value", "New Value")

Python

!FieldName!.replace("Old Value", "New Value")

Here is a link to the ESRI support page for it: http://support.esri.com/en/knowledgebase/techarticles/detail/20119