Added a basic error check and one additional example to the Perl-style replacement code