topical media & game development
basic-regex-26-PositionalMetacharacters.pl / pl
#!/usr/bin/perl -w
use strict;
print "\nThis example demonstrates the use of the ^ and $ positional metacharacters.\n\n";
my myTestString = "escape";
print "In 'myPattern'.\n\n" if (myPattern/);
myPattern' there is no match for 'myTestString !~ m/myPattern = "cape$";
print "But there is a match for 'myPattern'.\n\n" if (myPattern/);
(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.