Update Cursor using wildcards

Discussion created by satchmoan on Oct 3, 2012
Latest reply on Oct 3, 2012 by csny490
I am new to Python and I'm having trouble writing a script to process some forestry data.

I have a feature class called "Survey" and in this feature class is a text field called CODE. The data in CODE are comma delimited, but contain varying amounts of text and are not necessarily in a specific order, for example: "M,C,1," or "Hw,D,Con,L,3". In this example C and Hw are host types, C = Conifer and Hw = Hardwood. What I'm trying to do is this:
1. iterate through the rows looking for "*C,*" anywhere within the CODE field and if found
2. update another field, HOST, with "Conifer"

Any help is greatly appreciated.