Menu
Hello All,
I am still making the transition from Perl to PHP and need some help…
This line used to work fine for me in Perl:
[code=php]$msg .= ‘.’ if $msg !~ /[.!?)(]$/;
How can I tell it that if the last character is a “.”, “!”, “?”, “)”, or “(” then a “.” should NOT be added to the end?