AnsweredAssumed Answered

Convert string to Int. and parse the return.

Question asked by gus6177 on Sep 17, 2015
Latest reply on Sep 17, 2015 by esarow-esristaff

I'm very new to Python.  I want to use python to convert a string to and integer and return only a portion of the string.  I have the following string type C000004N_37.  I want to convert to int and return just the 37 of the string.  C000004N_37 is a route with the following meaning. C standards for Corridor. the 6 numbers are the route number.  The N is the roadbed direction so it can be "N", "S", "E" or "W".  the underscore just creates a space and the 37 denotes the Reference Marker.  The reference marker value could be anything from 1-670.