my $sub_str = "tftp>"; my $full_str = "# tftp> connect tftp.host.com 69"; my $i = index($full_str, $sub_str); # $i is 2
In reply to Re: Should I escape all chrs in a regex?
by repellent
in thread Should I escape all chrs in a regex?
by MikeKulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |