View Single Post
 
Old 05-01-2018, 02:49 PM
jon.fallows@sedgman.com jon.fallows@sedgman.com is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: May 2018
Location: Australia
Posts: 2
jon.fallows@sedgman.com is on a distinguished road
Default strip characters from the right

I need to strip (and not keep) characters from the right of a list of irregular strings. For example, in this string;

SCR SC207 MC3001 4W FIRE SUPP & EXT INSP STAT Rev 0';

I need to strip 'Rev 0' and retain the rest.

Note that strings in the list may NOT be all the same length.

I can strip from the left, but the right is proving to be tricky.

Thanks
Jon
Reply With Quote