in reply to Should I escape all chrs in a regex?
my $sub_str = "tftp>"; my $full_str = "# tftp> connect tftp.host.com 69"; my $i = index($full_str, $sub_str); # $i is 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Should I escape all chrs in a regex?
by MikeKulls (Novice) on Sep 29, 2010 at 05:47 UTC |