Good Luck ^^#!/usr/bin/perl my $string = 'It was an intelligent stori'; my $matches = 0; my (@chr) = split(//, $string); foreach (@chr) { $matches++ if ($_ =~ m/[iI]/); # match it & count } print "Content-type: text/html\n\n"; print "<html>String: $string<hr>Matches: $matches</html>\n";
In reply to Re: regexp to match repeated charater
by SFLEX
in thread regexp to match repeated charater
by ramprasad_gk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |