rstrip ... Remove all characters after the comma ","

Discussion created by esrijay on Sep 28, 2011
Latest reply on Sep 29, 2011 by jskinner-esristaff
I'm trying to strip all characters to the right of the comma from a field named Details_Primary_Address.  For some reason this doesn't work


either does this


I can just remove the comma like this

!Details_Primary_Address1!.replace(",", "")

but I want to also remove everthing after it (to the right).

Thanks in advance for the insight.