Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Removing trailing letter from string


From   "Paul O'Brien" <[email protected]>
To   [email protected]
Subject   st: Removing trailing letter from string
Date   Fri, 25 Feb 2005 12:35:44 +0000

How do I remove the last letter from a string which ends with a letter but does nothing if the string ends in a digit? The string is either 3 or 4 characters long:

EC4A
EC4P
EC4Y
DA15
SE10
SE2
SE3
W1A


Thanks

Paul

Dr Paul O'Brien
Westside Contraceptive Services
Raymede Clinic, Exmoor St, London
W10 6DZ
020 8962 4450 - tel
020 8962 4451 - fax
07900 495 118 - mob



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index