Re: Checking last character of string for punctuation

2005-02-02 Thread Randy W. Sims
Chris Schults wrote: Thanks to the people who promptly replied. I have two quick follow-up questions: 1) What does "s/\s*$/\./" do? (see email below) It effectively puts a period at the end of the string, while deleting any extra spaces at the end. 2) What are the differences between: $string .=

RE: Checking last character of string for punctuation

2005-02-02 Thread Chris Schults
s $title =~ /[!?.]\s*$/; Chris -Original Message- From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 2:54 PM To: beginners@perl.org Subject: Re: Checking last character of string for punctuation Chris Schults [CS], on Wednesday, February 2, 2005 at 14:

Re: Checking last character of string for punctuation

2005-02-02 Thread Ing. Branislav Gerzo
Chris Schults [CS], on Wednesday, February 2, 2005 at 14:39 (-0800) wrote the following: CS> However, some of my titles and subtitles end with punctuation ("?", "!", CS> ".", "..."). Thus, I end up with: Am I a title that ends with punctuation?. CS> Do-oh!. my $title = 'This is just test '; $tit

Re: Checking last character of string for punctuation

2005-02-02 Thread Philipp Traeder
On Wednesday 02 February 2005 22:39, Chris Schults wrote: > Howdy all. I'm a newbie with a newbie question. I assume that I'm in the > right place. Yes, thie does sound consistent. ;-) > I need to update some code a developer programmed for my organization. > > The purpose of the code is really b

RE: Checking last character of string for punctuation

2005-02-02 Thread Moon, John
Subject: Checking last character of string for punctuation Howdy all. I'm a newbie with a newbie question. I assume that I'm in the right place. I need to update some code a developer programmed for my organization. The purpose of the code is really basic. It simply prints: $title.

Checking last character of string for punctuation

2005-02-02 Thread Chris Schults
Howdy all. I'm a newbie with a newbie question. I assume that I'm in the right place. I need to update some code a developer programmed for my organization. The purpose of the code is really basic. It simply prints: $title. $subtitle. However, some of my titles and subtitles end with punctuation