topical media & game development
basic-regex-26-DoubledWord.pl / pl
#!/usr/bin/perl -w
use strict;
my myTestString = "Paris in the the Spring Spring.";
print "The original string was 'myTestString =~ s/myPattern/1/g;
print "The captured group was: '$1'.\n";
print "Any doubled word has now been removed.\n";
print "The string is now '
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.