in reply to Re^4: puzzled by pages
in thread puzzled by pages
In a regular expression, "\t" is a tab character, and I'm not sure what "\m" is, if anything.
use Test::More 'tests' => 2; ok( 'sef.mlxhelp.com' =~ /(\.mlxhelp)\.com/, q{'sef.mlxhelp.com' matches} ); ok( 'www.mlxhelp.com' =~ /(\.mlxhelp)\.com/, q{'www.mlxhelp.com' matches} );
Note that these will always put ".mlxhelp" in $1 when they match because the capturing parentheses are around that literal string.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: puzzled by pages
by grashoper (Monk) on Jun 11, 2008 at 18:05 UTC | |
by kyle (Abbot) on Jun 11, 2008 at 19:01 UTC | |
by grashoper (Monk) on Jun 11, 2008 at 23:47 UTC |