AnsweredAssumed Answered

Label class expression to strip words

Question asked by lsmith132 on Aug 5, 2019
Latest reply on Aug 5, 2019 by LanceCole

Novice in python. Have tried several expressions but can't seem to strip the words 'Branch' and/or 'Library' from a field of names...some names are "[name of city] Branch Library" and others are "[name of city] Library". I don't want my labels to show either of these on the map because it looks too busy. Some of the city names contain the string "Ranch" so those were also getting stripped - for example if the name is "Weston Ranch Branch Library" I only want the label to be "Weston Ranch" or if the name was "Weston Library" only display "Weston."  Thanks.