That's what the index function is for. As long as you are comparing fixed strings then using regular expressions is overkill. Stick with index.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Check if one string is a substring of another.
by davorg
in thread Check if one string is a substring of another.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |