in reply to Regex vs. string
$foo =~ /\ba\b/; # match the word "a" $foo =~ "\ba\b"; # match the three characters # backspace(\x08), "a", backspace
update: changed bell to backspace as per TimToady's nitpick
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex vs. string
by TimToady (Parson) on Jul 09, 2005 at 18:33 UTC |