import re fc='file path' rows=arcpy.UpdateCursor(fc) for row in rows: row.FieldName = re.search('LAND USE CODE</td>\n<td>(\d*)<' , row.PopUp).group(1) rows.updateRow(row)
fc = r'path\to\your\featureClass' rows = arcpy.UpdateCursor(fc) for row in rows: row.Land_Use = int(''.join([i for i in row.PopUp if i.isdigit()])) rows.updateRow(row)
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.