in reply to Count String Occurrences
my $num = ($whole =~ s/$part/$part/g);
add an "i" to the end of the regex if you want to be case insensitive.
Is there another way?
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: Count String Occurrences
by japhy (Canon) on Mar 28, 2000 at 09:35 UTC | |
RE: RE: Count String Occurrences
by chromatic (Archbishop) on Mar 24, 2000 at 19:15 UTC | |
by Lee (Initiate) on Mar 24, 2000 at 22:31 UTC | |
by chromatic (Archbishop) on Mar 24, 2000 at 22:59 UTC |