I am trying to remove trailing letters from Building Addresses e.g. 111A.
I can find those patterns with:
Select Address from Table where Address Regexp '^[0-9]{1,6}[A-Z] '
However I am unsure how to or if I can include the regexp inside a Replace so that I don't have to do 10*26 different replaces e.g.
Update Table set Address=Replace(Address,'0A','0') where Address like '%0A %'
vs some sort of (which I've tried):
Update Table set Address=Replace(Address,regexp ([0-9]{1,6})[A-Z],\1)
where Address Regexp '^[0-9]{1,6}[A-Z] '