Re: [Pharo-users] trimRight: problem

2016-09-14 Thread Henrik Nergaard
). 'This is a string.' onlyLetters. 'This is a string.' withoutPeriodSuffix. Best regards, Henrik -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Brad Selfridge Sent: Wednesday, September 14, 2016 10:34 PM To: pharo-use

[Pharo-users] trimRight: problem

2016-09-14 Thread Brad Selfridge
I have a string that has an ending period (example - 'This is a string.'). I want to trim the trailing period off of the string. I've tried using: 'This is a string.' trimRight: [ :ea | ea = $. ] But, the period is not trimmed. Is there a way to do this without me having to extend the String c