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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.